/* ═══════════════════════════════════════════════════════
   CG DESIGN — Main Stylesheet
   Brand: Barley #a78d5b · Stone #e3d5bb · Cream #fbf6f0
          Pearl Black #2f2f2f · True Black #08090c
   Font: Poppins + Cormorant Garamond
════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #a78d5b;
  --gold-light:  #c4a97a;
  --stone:       #e3d5bb;
  --cream:       #fbf6f0;
  --pearl:       #2f2f2f;
  --black:       #08090c;
  --white:       #ffffff;
  --font-body:   'Poppins', sans-serif;
  --font-display:'Cormorant Garamond', serif;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h:       72px;
  --section-gap: 120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--pearl);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── UTILITY ── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-eyebrow--light { color: var(--stone); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pearl);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-title--light { color: var(--cream); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--pearl);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover {
  background: var(--gold-light);
}
.btn--full { width: 100%; text-align: center; }

/* ── SCROLL ANIMATIONS ── */
.reveal, .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

.reveal.is-visible, .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar__logo-img {
  height: 32px;
  width: auto;
  transition: opacity 0.3s;
}
.navbar__logo:hover .navbar__logo-img { opacity: 0.75; }

.navbar__menu ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.25s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link--cta {
  border: 1px solid rgba(167,141,91,0.6);
  padding: 0.5rem 1.2rem;
  color: var(--stone);
}
.nav-link--cta:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.nav-link--cta::after { display: none; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
.navbar__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.hero.is-loaded .hero__bg-img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 9, 12, 0.55) 0%,
    rgba(40, 30, 15, 0.65) 50%,
    rgba(8, 9, 12, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 2rem;
}

.hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title span {
  color: var(--stone);
  font-style: italic;
  text-transform: none;
  font-weight: 300;
}

.hero__subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--stone));
  animation: scrollPulse 2s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0.6) translateY(-10px); }
  50%       { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ════════════════════════════════
   MOSAIC GRID
════════════════════════════════ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 380px);
}

.mosaic__cell { overflow: hidden; }

.mosaic__cell--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.mosaic__cell--image:hover img { transform: scale(1.06); }

.mosaic__cell--text {
  background: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.mosaic__cell--text-dark {
  background: var(--pearl);
}
.mosaic__cell--text-dark .mosaic__text-inner h3,
.mosaic__cell--text-dark .mosaic__text-inner p {
  color: var(--cream);
}
.mosaic__cell--text-dark .mosaic__label {
  color: var(--stone) !important;
}

.mosaic__text-inner { max-width: 280px; }

.mosaic__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.mosaic__text-inner p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--pearl);
}

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: var(--section-gap) 8vw;
}

.about__visual {
  position: relative;
}
.about__img-stack {
  position: relative;
  height: 540px;
}
.about__img {
  position: absolute;
  object-fit: cover;
  border-radius: 2px;
}
.about__img--back {
  width: 75%;
  height: 75%;
  top: 0; right: 0;
}
.about__img--front {
  width: 65%;
  height: 70%;
  bottom: 0; left: 0;
  border: 8px solid var(--cream);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.12);
}

.about__badge {
  position: absolute;
  bottom: 3rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.4rem 1.6rem;
  text-align: center;
  z-index: 2;
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}
.about__badge-text {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  opacity: 0.85;
}

.about__content .section-title { margin-bottom: 1rem; }
.about__body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.2rem;
}
.about__content .btn { margin-top: 1rem; }

/* ════════════════════════════════
   PRODUCTS
════════════════════════════════ */
.products {
  background: var(--black);
  padding: var(--section-gap) 8vw;
}

.products__header {
  max-width: 640px;
  margin-bottom: 4rem;
}
.products__intro {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(227,213,187,0.7);
}

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

.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(167,141,91,0.12);
  padding: 2.5rem 2rem;
  transition: background 0.3s, border-color 0.3s;
}
.product-card:hover {
  background: rgba(167,141,91,0.08);
  border-color: rgba(167,141,91,0.3);
}

.product-card__icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.product-card__icon svg { width: 100%; height: 100%; }

.product-card h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.8rem;
}
.product-card p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(227,213,187,0.6);
}

.products__certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  border-top: 1px solid rgba(167,141,91,0.2);
  padding-top: 3rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.cert-item__icon {
  color: var(--gold);
  font-size: 0.6rem;
}

/* ════════════════════════════════
   PORTFOLIO
════════════════════════════════ */
.portfolio {
  padding: var(--section-gap) 8vw;
}

.portfolio__header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.portfolio__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--stone);
  margin-bottom: 3rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  padding: 1rem 1.8rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.tab-btn:hover { color: var(--pearl); }
.tab-btn--active { color: var(--pearl); }
.tab-btn--active::after { transform: scaleX(1); }

.portfolio__panel {
  display: none;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
  animation: panelFadeIn 0.5s var(--ease);
}
.portfolio__panel--active {
  display: grid;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.gallery__main {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--stone);
  border-radius: 1px;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.35s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.gallery__thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s;
  border: 1.5px solid transparent;
}
.gallery__thumb:hover  { opacity: 0.8; }
.gallery__thumb--active {
  opacity: 1;
  border-color: var(--gold);
}

.portfolio__info { padding-top: 1rem; }
.portfolio__info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.portfolio__location {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.portfolio__info p:last-child {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
}

/* ════════════════════════════════
   QUOTE SECTION
════════════════════════════════ */
.quote-section {
  background: var(--gold);
  padding: 5rem 8vw;
}
.quote-section__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  position: relative;
}
.quote-mark {
  font-size: 4rem;
  line-height: 0.5;
  vertical-align: -0.5rem;
  opacity: 0.4;
  font-family: var(--font-display);
}
cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-style: normal;
}

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  padding: var(--section-gap) 8vw;
}

.contact__body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2.5rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: #555;
}
.contact__list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 1px;
}
.contact__list-icon svg { width: 100%; height: 100%; }
.contact__list a:hover { color: var(--gold); transition: color 0.2s; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pearl);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone);
  background: var(--white);
  color: var(--pearl);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.7rem;
  color: #aaa;
  text-align: center;
  margin-top: -0.5rem;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 5rem 8vw 2.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(167,141,91,0.15);
}

.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 1.2rem;
}

.footer__brand p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(227,213,187,0.5);
  max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.2rem;
}

.footer__links ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(227,213,187,0.5);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--stone); }

.footer__contact p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(227,213,187,0.5);
}
.footer__contact a:hover { color: var(--stone); transition: color 0.25s; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom p {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(167,141,91,0.45);
  letter-spacing: 0.05em;
}
.footer__bottom a { color: var(--gold); opacity: 0.7; }
.footer__bottom a:hover { opacity: 1; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__img-stack { height: 400px; }
  .about__badge { right: 0; bottom: 1rem; }

  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portfolio__panel--active {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-gap: 70px; }

  .navbar__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,9,12,0.97);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
  }
  .navbar__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .navbar__menu ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .navbar__burger { display: flex; }

  .hero__title { font-size: clamp(1.9rem, 8vw, 3rem); }
  .hero__subtitle br { display: none; }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .mosaic__cell { min-height: 260px; }

  .about { padding: var(--section-gap) 5vw; }
  .products { padding: var(--section-gap) 5vw; }
  .portfolio { padding: var(--section-gap) 5vw; }
  .contact { padding: var(--section-gap) 5vw; }
  .footer { padding: 4rem 5vw 2rem; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__brand { grid-column: auto; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .tab-btn { padding: 0.75rem 1rem; font-size: 0.6rem; }

  .portfolio__tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .portfolio__tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .mosaic {
    grid-template-columns: 1fr;
  }
  .mosaic__cell { min-height: 220px; }

  .hero__eyebrow { display: none; }

  .products__grid { grid-template-columns: 1fr; }
}
