@charset "utf-8";

:root {
  --ink: #00395a;
  --ink-deep: #002c45;
  --cyan: #00aebe;
  --cyan-bright: #00bdcb;
  --red: #c93434;
  --paper: #ffffff;
  --mist: #f2f4f5;
  --line: #dce3e6;
  --shadow: 0 18px 50px rgba(0, 44, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 57, 90, 0.08), transparent 330px),
    #f7f8f8;
  font: 16px/1.6 Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: #007f96;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--ink-deep);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 0.25rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

#wrapper {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* Antetul recreeaza compozitia veche, fara Flash. */
#header {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 252px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: var(--ink-deep);
}

.header-visual {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 202px;
}

.brand {
  display: grid;
  place-items: center;
  min-height: 202px;
  padding: 18px;
  background: linear-gradient(145deg, #005077, #002d49);
}

.brand img {
  width: 193px;
  border-radius: 2px;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 30px 34px;
  background:
    linear-gradient(90deg, rgba(0, 174, 190, 0.92) 0 15%, rgba(0, 57, 90, 0.08) 58%, rgba(0, 44, 69, 0.46)),
    url("images/head_bkg.jpg") center / cover no-repeat;
}

.hero-copy {
  max-width: 470px;
  margin: 0;
  color: #fff;
  font-size: clamp(0.88rem, 1.6vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-shadow: 0 1px 5px rgba(0, 27, 43, 0.8);
  text-transform: uppercase;
}

.main-nav {
  min-height: 50px;
  background: var(--ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.35rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--cyan);
}

.nav-phone {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

#mainContent {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
}

#content {
  float: none;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 58px) 60px;
  overflow-wrap: anywhere;
}

#content p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.7;
}

#content h1,
#content h2,
#content h3,
#content h4 {
  clear: both;
  color: var(--ink);
  line-height: 1.3;
}

#content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

#content h2 {
  margin: 1.2rem 0 0.85rem;
  font: 700 0.94rem/1.6 Arial, Helvetica, sans-serif;
}

#content h3 {
  margin: 1.7rem 0 0.75rem;
  font-size: 0.98rem;
  text-transform: uppercase;
}

#content h3:hover {
  background: transparent;
  border: 0;
}

.blue {
  color: var(--cyan);
  font-size: 1.1em;
  font-weight: 400;
}

.accent {
  color: var(--red);
}

#content ul,
#content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.6rem;
  color: #006f89;
  font-size: 0.92rem;
  line-height: 1.65;
}

#content ul {
  list-style: square;
}

#content ul li,
#content ol li {
  margin: 0.24rem 0;
  padding-left: 0.2rem;
  background: none;
}

#content ul li a {
  padding-left: 0;
}

.new-product-note {
  font-weight: 700;
}

.new-product-label {
  margin-right: 0.2em;
  color: var(--red);
  font-weight: 800;
}

.sep {
  height: 1px;
  margin: 24px 0;
  border: 0;
  border-bottom: 1px dotted var(--red);
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  margin: 26px 0;
  padding: 18px 0;
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container > * {
  min-width: 0;
}

.floatLeft {
  float: left;
}

.floatRight {
  float: right;
}

.clearBoth {
  clear: both;
}

.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.pad {
  padding-right: 17px;
}

#content .container .pad {
  padding-right: 0;
}

.special {
  width: min(100%, 560px);
  height: auto;
  margin: 28px auto;
  padding: 46px 38px 28px 142px;
  color: var(--ink);
  background: #eef5f5 url("images/bck_special.jpg") left top / cover no-repeat;
  font-family: Georgia, "Times New Roman", serif;
  text-align: left;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.4rem 1.5rem 1rem 2.2rem;
  color: #51656f;
  background: #f5f7f7 url("images/quote1.gif") 8px 8px no-repeat;
  border-left: 3px solid var(--cyan);
  font: 400 0.94rem/1.7 Arial, Helvetica, sans-serif;
}

blockquote span.quote {
  display: block;
  min-height: 31px;
  padding: 0.75rem 2.5rem 0 0;
  background: url("images/quote2.gif") right bottom no-repeat;
  font-weight: 700;
  text-align: right;
}

.col,
.colProd {
  flex: 1 1 220px;
  width: auto;
  height: auto;
}

.colTitle,
.colProdTitle {
  height: auto;
  min-height: 46px;
  padding: 7px 12px;
  border-left: 3px solid var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.colBody,
.colProdBody {
  height: auto;
  min-height: 185px;
  padding: 10px 12px;
  border-left: 2px solid #c6c6c6;
}

.colFooter,
.colProdFooter {
  height: 24px;
  padding-left: 12px;
  border-left: 2px solid #c6c6c6;
}

.small {
  margin-bottom: 0.15rem !important;
  color: #0086a1 !important;
  font-size: 0.68rem !important;
}

.relative {
  position: relative;
}

.oferta {
  position: absolute;
  z-index: 2;
  top: -105px;
  right: -8px;
}

#content table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #bbc6cb;
  border-top: 3px solid var(--red);
  border-collapse: collapse;
  font-size: 0.78rem;
  -webkit-overflow-scrolling: touch;
}

#content caption {
  padding: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

#content th,
#content td {
  min-width: 58px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c8d0d4;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

#content th {
  color: #fff;
  background: #536d7a;
}

#content td.firstCol {
  background: #f2f1ef;
}

#content td.secondCol {
  background: #e2e5e6;
}

#laminateLgTbl {
  width: max-content;
}

/* Meniul lateral pastreaza categoriile si ordinea site-ului vechi. */
#sidebar {
  float: none;
  width: auto;
  padding: 28px 18px 34px;
  background: var(--mist);
  border-right: 1px solid var(--line);
  grid-column: 1;
  grid-row: 1;
}

.side-title {
  margin: 0 0 16px;
  padding: 0 0 10px;
  color: var(--ink);
  border-bottom: 2px solid var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.side-link {
  display: block;
  margin: 0 -6px 5px;
  padding: 9px 8px;
  color: #385a6c;
  border-left: 3px solid transparent;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.side-link:hover,
.side-link:focus-visible,
.side-link[aria-current="page"] {
  color: #007e96;
  background: #e3e7e8;
  border-left-color: var(--ink);
}

.side-group {
  margin: 5px 0;
  border-bottom: 1px solid #d9dfe1;
}

.side-group summary {
  position: relative;
  padding: 10px 24px 10px 5px;
  color: #385a6c;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  text-transform: uppercase;
}

.side-group summary::-webkit-details-marker {
  display: none;
}

.side-group summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  content: "+";
  color: var(--cyan);
  font-size: 1.15rem;
  transform: translateY(-50%);
}

.side-group[open] summary::after {
  content: "−";
}

.side-group ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.side-group li a {
  display: block;
  padding: 5px 6px 5px 15px;
  color: #5b6e78;
  background: none;
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
}

.side-group li a::before {
  margin-right: 7px;
  color: var(--red);
  content: "›";
}

.side-group li a:hover,
.side-group li a[aria-current="page"] {
  color: #007e96;
}

.sidebar-promos {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.promo-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88px;
  padding: 10px;
  overflow: hidden;
  color: #fff;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  border-radius: 2px;
  text-decoration: none;
}

.promo-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 25%, rgba(0, 37, 58, 0.9));
}

.promo-card span {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.promo-offer { background-image: url("images/cerere_oferta.jpg"); }
.promo-call { background-image: url("images/call.jpg"); }
.promo-panels { background-image: url("images/panouri_termoizolante.jpg"); }
.promo-special { background-image: url("images/oferte_speciale.jpg"); }

#footer {
  display: grid;
  grid-template-columns: 230px 1fr;
  width: 100%;
  height: auto;
  min-height: 106px;
  margin: 0;
  padding: 0;
  color: #52636b;
  background: #ebeae6;
  border-top: 5px solid var(--ink-deep);
  border-bottom: 2px solid #c6c6c6;
}

#leftFooter {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 16px 20px;
  color: #fff;
  background: var(--ink-deep);
}

.footer-contact {
  font-size: 0.76rem;
  line-height: 1.55;
}

.footer-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

#rightFooter {
  float: none;
  width: auto;
  height: auto;
  padding: 20px 28px;
  font-size: 0.72rem;
  text-align: center;
}

#rightFooter ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 15px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

#rightFooter a {
  font-weight: 700;
}

/* Formular de contact modern, conectat la endpoint-ul PHP existent. */
.contact-form {
  margin-top: 1.25rem;
  padding: clamp(20px, 4vw, 34px);
  background: #f3f6f7;
  border-top: 3px solid var(--cyan);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  color: #153d52;
  background: #fff;
  border: 1px solid #aebdc4;
  border-radius: 2px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(0, 174, 190, 0.16);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-submit {
  margin-top: 18px;
  padding: 0.75rem 1.4rem;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--cyan);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  margin-top: 12px !important;
  font-weight: 700;
}

.form-status.is-error {
  color: #a52222 !important;
}

.form-status.is-success {
  color: #087242 !important;
}

/* Pagini de produs adaugate dupa migrarea continutului vechi. */
.product-hero {
  display: block;
  margin: 20px 0 28px;
  overflow: hidden;
  background: var(--ink-deep);
  border-bottom: 4px solid var(--cyan);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0 0 18px;
  color: #687b85;
  font-size: 0.72rem;
}

.breadcrumbs a {
  color: #477080;
}

.breadcrumbs [aria-current="page"] {
  font-weight: 700;
}

.product-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 399;
  object-fit: cover;
}

.product-lead {
  font-size: 1.02rem !important;
}

.product-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 30px;
}

.price-card {
  padding: 20px;
  color: #fff;
  background: var(--ink-deep);
  border-top: 4px solid var(--cyan);
}

.price-card h3 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 1.08rem !important;
}

.price-card p {
  margin: 0 !important;
  color: #fff !important;
}

.price-card strong {
  color: var(--cyan-bright);
  font-size: 1.35rem;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 18px 0 30px;
  padding: 22px;
  background: #f2f5f6;
  border-left: 4px solid var(--cyan);
}

.product-spec {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d5dfe3;
}

.product-spec span {
  color: #607580;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-spec strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.product-posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.product-posters figure,
.product-gallery figure {
  min-width: 0;
  margin: 0;
}

.product-posters a,
.product-gallery a {
  display: block;
  overflow: hidden;
  background: #e8edef;
  border: 1px solid var(--line);
}

.product-posters img {
  display: block;
  width: 100%;
  height: auto;
}

.product-posters figcaption,
.product-gallery figcaption {
  padding: 9px 10px;
  color: #526a75;
  background: #f2f5f6;
  font-size: 0.72rem;
  line-height: 1.45;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}

.product-gallery img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-gallery a:hover img,
.product-gallery a:focus-visible img {
  transform: scale(1.035);
}

.offer-callout {
  margin-top: 30px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink-deep), #00547d);
  border-left: 5px solid var(--cyan-bright);
}

#content .offer-callout p {
  color: #fff;
}

.offer-callout .form-submit {
  display: inline-block;
  margin-top: 5px;
  color: var(--ink-deep);
  background: #fff;
  text-decoration: none;
}

.offer-callout .form-submit:hover,
.offer-callout .form-submit:focus-visible {
  color: #fff;
  background: var(--cyan);
}

/* Lightbox nativ pentru schitele si fotografiile vechi. */
.lightbox {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 24, 38, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  background: #fff;
  box-shadow: 0 15px 60px #000;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 820px) {
  #wrapper {
    width: min(100% - 20px, 720px);
    margin: 10px auto;
  }

  .header-visual {
    grid-template-columns: 175px 1fr;
  }

  .brand {
    min-height: 180px;
    padding: 10px;
  }

  .hero-panel {
    min-height: 180px;
    padding: 24px;
  }

  .nav-toggle {
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    color: #fff;
    background: var(--ink-deep);
    border: 0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .burger-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 18px;
  }

  .burger-icon span {
    position: absolute;
    left: 0;
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: top 180ms ease, transform 180ms ease, opacity 120ms ease;
  }

  .burger-icon span:nth-child(1) {
    top: 1px;
  }

  .burger-icon span:nth-child(2) {
    top: 8px;
  }

  .burger-icon span:nth-child(3) {
    top: 15px;
  }

  .nav-open .burger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
  }

  .nav-open .burger-icon span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .burger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
  }

  .main-nav ul {
    position: fixed;
    z-index: 998;
    inset: 0 0 0 auto;
    display: block;
    width: min(320px, 86vw);
    padding: 70px 20px 30px;
    overflow-y: auto;
    background: var(--ink-deep);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.32);
    transform: translateX(110%);
    transition: transform 180ms ease;
  }

  .nav-open .main-nav ul {
    transform: translateX(0);
  }

  .main-nav a {
    min-height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-phone {
    border-left: 0;
  }

  #mainContent {
    grid-template-columns: 1fr;
  }

  #content {
    grid-column: 1;
    grid-row: 1;
  }

  #sidebar {
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .sidebar-promos {
    grid-template-columns: repeat(2, 1fr);
  }

  #footer {
    grid-template-columns: 1fr;
  }

  #leftFooter {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  #wrapper {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .header-visual {
    display: block;
  }

  .brand {
    display: flex;
    justify-content: flex-start;
    min-height: 118px;
    padding: 12px 18px;
  }

  .brand img {
    width: 135px;
  }

  .hero-panel {
    min-height: 116px;
    padding: 22px 20px;
    background-position: center;
  }

  #content {
    padding: 30px 19px 44px;
  }

  #content .floatLeft,
  #content .floatRight {
    float: none;
  }

  #content img[width] {
    max-width: 100%;
  }

  .container {
    display: grid;
  }

  .special {
    padding: 115px 24px 24px;
    background-size: auto 100%;
  }

  .oferta {
    position: static;
    display: block;
    margin: 0 auto 10px;
  }

  .sidebar-promos,
  .form-grid,
  .product-price-grid,
  .product-specs,
  .product-posters {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery img {
    height: 180px;
  }

  #rightFooter {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  #wrapper {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  #header,
  #sidebar,
  #footer {
    display: none;
  }

  #mainContent {
    display: block;
  }

  #content {
    padding: 0;
  }
}
