@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #0d2b1a;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-400: #74c69d;
  --green-100: #d8f3dc;
  --green-50:  #f0faf2;
  --gold:      #c9a84c;
  --gold-light:#f0d080;
  --dark:      #14141a;
  --dark-mid:  #1e1e28;
  --white:     #ffffff;
  --gray-100:  #f5f5f7;
  --gray-200:  #e8e8ee;
  --gray-400:  #9a9aaa;
  --text-dark: #38384a;
  --text-mid:  #72728a;
  --text-light:#9898aa;
  --shadow-sm: 0 2px 8px rgba(10,10,20,.10);
  --shadow:    0 6px 24px rgba(10,10,20,.14);
  --shadow-lg: 0 12px 40px rgba(10,10,20,.20);
  --radius:    12px;
  --radius-sm: 8px;
  --transition:.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--gray-100);
  background-image:
    linear-gradient(180deg, rgba(13,43,26,.04) 0%, transparent 300px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  position: relative;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  background: var(--dark);
}

/* split background: left = coolcolors house, right = jetblack house */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('Images/products/coolcolors_house.jpg'),
    url('Images/products/jetblack_house.jpg');
  background-size: 50% 100%, 50% 100%;
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  filter: brightness(.38) saturate(.7);
  z-index: 0;
}

/* subtle gradient seam between the two images */
header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 40%,
    rgba(14,14,20,.55) 50%,
    transparent 60%);
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

nav ul {
  list-style: none;
  display: flex;
  gap: .2rem;
}

nav ul li a {
  display: block;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition);
  border: 1px solid transparent;
}

nav ul li a:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.18);
}

nav ul li a.active {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(64,145,108,.4);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── PAGE HERO BANNER (subpages) ────────────────── */
.page-banner {
  background-image: url('Images/products/coolcolors_house.jpg');
  background-size: cover;
  background-position: center 40%;
  position: relative;
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,20,.78) 0%, rgba(14,14,20,.65) 100%);
}

.page-banner h1 {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.page-banner h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: .6rem auto 0;
  border-radius: 2px;
}

/* ─── MAIN ───────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--dark-mid);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .83rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.08);
}

footer a { color: rgba(255,255,255,.75); text-decoration: none; }
footer a:hover { color: var(--gold-light); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: .02em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922a 100%);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(201,168,76,.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 5px 18px rgba(201,168,76,.45);
  transform: translateY(-1px);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(64,145,108,.3);
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  box-shadow: 0 5px 18px rgba(64,145,108,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: white;
}

/* ─── HERO (index) ───────────────────────────────── */
.hero {
  border-radius: var(--radius);
  padding: 4rem 2rem;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}

/* split: stânga coolcolors, dreapta jetblack */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('Images/products/coolcolors_house.jpg'),
    url('Images/products/jetblack_house.jpg');
  background-size: 55% 100%, 55% 100%;
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  filter: brightness(.42) saturate(.75);
}

/* gradient blend la mijloc */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(14,14,20,.3) 0%,
    rgba(14,14,20,.6) 48%,
    rgba(14,14,20,.6) 52%,
    rgba(14,14,20,.3) 100%);
}

.hero > * { position: relative; z-index: 2; color: #ffffff; }

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.25);
  border: 1px solid rgba(201,168,76,.5);
  color: var(--gold-light);
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: .75rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── PRODUCT GRID (index) ───────────────────────── */
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--green-800);
  margin-bottom: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,.25));
}

.product-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 3px solid var(--green-600);
}

.product-card-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-800);
}

.product-card-body p {
  font-size: .9rem;
  color: var(--text-mid);
  flex: 1;
}

.product-card-body .card-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-600);
}

/* ─── STOCK BANNER ───────────────────────────────── */
.stock-banner {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.stock-banner p {
  color: rgba(255,255,255,.9);
  font-size: .97rem;
}

.stock-banner strong {
  display: block;
  color: white;
  font-size: 1.1rem;
  margin-bottom: .2rem;
}

/* ─── DESPRE NOI ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.about-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--green-800);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--green-100);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-mid);
  font-size: .97rem;
}

.about-text strong { color: var(--green-700); font-weight: 600; }

.about-photo { text-align: center; }

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid var(--green-100);
}

.about-photo p {
  margin-top: .85rem;
  font-size: .88rem;
  color: var(--text-light);
  font-style: italic;
}

.about-photo strong {
  display: block;
  color: var(--green-800);
  font-style: normal;
  font-size: .95rem;
  font-weight: 600;
}

/* ─── PRODUCTS PAGE ──────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
}

.product-main-img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow-sm);
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.sidebar-link {
  display: block;
  padding: .5rem .8rem;
  background: var(--gray-100);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: .86rem;
  font-weight: 500;
  border-left: 3px solid var(--green-500);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.sidebar-link:hover {
  background: var(--green-100);
  border-left-color: var(--green-700);
  color: var(--green-800);
}

.sidebar-link.external {
  border-left-color: var(--gold);
  color: var(--green-700);
}

.sidebar-link.cta {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  border-left-color: var(--gold);
  color: white;
  text-align: center;
  font-weight: 600;
  margin-top: auto;
  box-shadow: 0 3px 10px rgba(27,67,50,.3);
}

.sidebar-link.cta:hover {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
  color: white;
}

.thumbs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.thumbs-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.thumbs-row img:hover {
  border-color: var(--green-500);
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}

/* ─── CONTACT PAGE ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.75rem;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--green-600);
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green-800);
  margin-bottom: 1rem;
}

.contact-info address {
  font-style: normal;
  color: var(--text-mid);
  line-height: 2;
  font-size: .95rem;
}

.contact-info .divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.25rem 0;
}

.contact-map {
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--green-600);
}

.contact-form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green-800);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .9rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: .02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: .6rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-family: inherit;
  font-size: .93rem;
  color: var(--text-dark);
  background: var(--gray-100);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  background: var(--green-100);
  color: var(--green-800);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  border: 1px solid var(--green-400);
}

/* ─── PRODUCTS PAGE (produse.html) ──────────────── */
.product-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}

.product-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

.product-section-inner.reverse {
  direction: rtl;
}

.product-section-inner.reverse > * {
  direction: ltr;
}

.product-section-img {
  overflow: hidden;
}

.product-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.product-section:hover .product-section-img img {
  transform: scale(1.04);
}

.product-section-text {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}

.product-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
}

.product-section-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--green-800);
  line-height: 1.2;
}

.product-section-text p {
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .25rem;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text-mid);
}

.product-features li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

.alucoil-banner {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: white;
  box-shadow: var(--shadow);
}

.alucoil-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.alucoil-banner p {
  opacity: .8;
  font-size: .9rem;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,30,15,.97);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
  }

  nav.open { display: block; }
  nav ul { flex-direction: column; gap: .2rem; }
  nav ul li a { padding: .7rem 1rem; }

  .about-grid { grid-template-columns: 1fr; padding: 1.5rem; }
  .about-photo { order: -1; max-width: 200px; margin: 0 auto; }
  .product-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stock-banner { flex-direction: column; text-align: center; }
  main { margin: 1rem auto; }
  .hero { padding: 3rem 1.25rem; border-radius: 8px; }
  .product-section-inner,
  .product-section-inner.reverse { grid-template-columns: 1fr; direction: ltr; }
  .product-section-img { height: 240px; }
  .product-section-text { padding: 1.5rem; }
  .alucoil-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  main { padding: 0 1rem; }
  .about-grid,
  .contact-info,
  .contact-form-card,
  .product-layout { padding: 1.25rem; }
  .thumbs-row { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
