/* ===== VARIABLES ===== */
:root {
  --bg:          #F0EBE1;
  --bg-white:    #FFFFFF;
  --text-dark:   #1A1A1A;
  --text-mid:    #555555;
  --text-light:  #888888;
  --accent:      #C9B99A;
  --accent-dark: #8B7355;
  --border:      #E0D9CE;
  --max-w:       1280px;
  --sans:        'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif:       'Playfair Display', Georgia, serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-dark); font-family: var(--sans); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* ===== BTN DISCUSS ===== */
.btn-discuss {
  display: inline-block;
  background: var(--text-dark);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 40px;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-discuss:hover { background: #333; transform: translateY(-1px); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}
#navbar.scrolled {
  background: rgba(240, 235, 225, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
#navbar.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover,
.nav-links a.nav-active { color: var(--accent) !important; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65);
  padding: 2px 0;
  transition: color 0.2s;
  font-family: var(--sans);
}
#navbar.scrolled .lang-btn { color: var(--text-mid); }
.lang-btn.active { color: #fff; border-bottom: 1px solid #fff; }
#navbar.scrolled .lang-btn.active { color: var(--text-dark); border-bottom-color: var(--text-dark); }
.lang-sep { color: rgba(255, 255, 255, 0.3); font-size: 11px; }
#navbar.scrolled .lang-sep { color: var(--border); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s;
}
#navbar.scrolled .hamburger span { background: var(--text-dark); }

/* ===== HERO LOGO ===== */
.hero-logo-wrap {
  position: absolute;
  top: 88px;          /* sits just below the 72px navbar */
  left: 40px;
  z-index: 2;
  pointer-events: none; /* doesn't block video clicks */
}
.hero-logo-img {
  display: block;
  height: clamp(120px, 15vw, 200px); /* 200px desktop → scales with viewport → 120px floor */
  width: auto;
  /* Crisp rendering for logo details at any size */
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.35)); /* subtle shadow for depth */
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #111;
}
#hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.hero-content {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  color: #fff;
}
.hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 20px;
  line-height: 1.75;
  animation: hero-fade 1.2s ease-out 2.1s both;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 720px;
  animation: hero-rise 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}
.hero-tags {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  animation: hero-fade 1.0s ease-out 2.9s both;
}
.hero-tags a { transition: color 0.2s; }
.hero-tags a:hover { color: var(--accent); }
.hero-tags span { color: rgba(255, 255, 255, 0.25); }

/* ── Hero entrance keyframes ── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-sub,
  .hero-tags { animation: none; opacity: 1; }
}

/* ===== WHY US ===== */
#why-us {
  background: var(--bg);
  padding: 88px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.why-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 26px;
  transition: box-shadow 0.3s;
}
.why-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.why-icon {
  margin-bottom: 22px;
  height: 36px;
  display: flex;
  align-items: center;
}
.why-card h3 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.6;
}
.why-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  background: var(--bg);
  padding: 88px 0;
}
.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 52px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.portfolio-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.portfolio-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); }
.portfolio-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.portfolio-card:hover .portfolio-img-wrap img { transform: scale(1.04); }
.portfolio-body {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.portfolio-meta {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.3px;
  margin-bottom: 7px;
}
.portfolio-body h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
}
.portfolio-body p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}
.portfolio-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 20px;
  color: var(--text-dark);
  transition: color 0.2s, transform 0.2s;
}
.portfolio-link:hover { color: var(--accent); transform: translateX(5px); }

/* ===== QUOTE CTA ===== */
#quote-cta {
  position: relative;
  background: url('IMG/2.jpg') center / cover no-repeat;
  padding: 110px 0;
  text-align: center;
}
.quote-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.quote-cta-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.quote-cta-content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 400;
  max-width: 780px;
  margin: 0 auto 24px;
  line-height: 1.3;
}
.quote-cta-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ===== HOW WE WORK ===== */
/*
  3-row vertical stack:
    ROW 1  .hw-top    — cream, 2-col grid (heading | cards)
    ROW 2  .hw-photo  — full-width image, fixed height
    ROW 3  .hw-phases — dark strip, 5 columns
*/

#philosophy {
  display: flex;
  flex-direction: column;
  background: var(--bg); /* cream */
}

/* ── ROW 1: cream light area ── */
.hw-top {
  display: grid;
  grid-template-columns: 38fr 62fr;
}

.hw-heading {
  display: flex;
  align-items: center;
  padding: clamp(52px, 6.5vw, 88px) clamp(36px, 4.5vw, 68px);
  border-right: 1px solid rgba(0,0,0,0.07);
}

.hw-heading h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.4px;
  max-width: 360px;
}

.hw-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  padding: clamp(40px, 5.5vw, 68px) clamp(36px, 5vw, 68px);
  align-content: center;
}

.hw-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hw-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 2px;
}

.hw-card h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.hw-card p {
  font-size: 11.5px;
  color: var(--text-mid);
  line-height: 1.72;
}

/* ── ROW 2: large image ── */
.hw-photo {
  width: 100%;
  height: clamp(340px, 45vw, 520px);
  overflow: hidden;
  line-height: 0;
}

.hw-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  max-width: none;
}

/* ── ROW 3: dark phases strip ── */
.hw-phases {
  display: flex;
  background: #111;
  padding: clamp(24px, 3vw, 36px) clamp(32px, 4.5vw, 60px);
}

.hw-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.hw-phase:first-child { padding-left: 0; }
.hw-phase:last-child  { border-right: none; padding-right: 0; }

.hw-phase-num {
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--serif);
}

.hw-phase-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.hw-phase p {
  font-size: 11px;
  color: rgba(255,255,255,0.46);
  line-height: 1.65;
}

/* ── responsive ── */
@media (max-width: 900px) {
  .hw-top { grid-template-columns: 1fr; }
  .hw-heading {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: clamp(40px, 6vw, 60px) clamp(28px, 5vw, 48px);
  }
  .hw-heading h2 { max-width: 100%; }
}

@media (max-width: 640px) {
  .hw-cards { grid-template-columns: 1fr; gap: 24px; }
  .hw-phases { flex-wrap: wrap; gap: 16px; padding: 22px 20px; }
  .hw-phase {
    flex: 0 0 calc(50% - 8px);
    border-right: none;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 14px;
  }
  .hw-phase:last-child { border-bottom: none; }
}

@media (max-width: 400px) {
  .hw-cards { grid-template-columns: 1fr; }
  .hw-phases { flex-direction: column; }
  .hw-phase { flex: none; width: 100%; }
}

/* ===== ABOUT ===== */
#about {
  background: var(--bg-white);
  padding: 88px 0;
  position: relative;
}
.about-studio-label {
  position: absolute;
  top: 36px;
  right: 40px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-light);
  text-transform: uppercase;
}
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  margin-bottom: 26px;
  line-height: 1.4;
}
.about-text p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
  margin-top: 30px;
}
.about-checks li {
  font-size: 13px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
  background: var(--bg);
  padding: 88px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.t-icon { margin-bottom: 4px; }
.t-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.t-project {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.3px;
}
.testimonial-card p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-top: 8px;
}

/* ===== FAQ ===== */
#faq {
  background: var(--bg-white);
  padding: 88px 0;
}
.faq-cta-row {
  text-align: center;
  margin-bottom: 44px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-top: 44px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 14px;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
  font-family: var(--sans);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-dark); }
.faq-icon {
  font-size: 20px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.32s ease;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--text-dark); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.faq-a p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.85;
  padding-bottom: 22px;
}

/* ===== FINAL CTA ===== */
#final-cta {
  background: var(--bg);
  padding: 88px 0;
  text-align: center;
}
#final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 50px);
  font-weight: 400;
  margin-bottom: 36px;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* ===== FOOTER ===== */
footer { background: var(--bg-white); }
.footer-main { padding: 64px 0; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 100px 1fr 180px 180px;
  gap: 48px;
  align-items: start;
}
.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
}
.footer-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.footer-contacts p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 7px;
  line-height: 1.6;
}
.footer-contacts a { color: var(--text-dark); transition: color 0.2s; }
.footer-contacts a:hover { color: var(--accent); }
.footer-menu ul,
.footer-social ul { display: flex; flex-direction: column; gap: 11px; }
.footer-menu a,
.footer-social a {
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.2s;
}
.footer-menu a:hover,
.footer-social a:hover { color: var(--text-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 12px;
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { height: auto; }
  .hw-top { grid-template-columns: 1fr; }
  .hw-photo { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 12px; }

  /* Hamburger visible */
  .hamburger { display: flex; }
  .nav-right .btn-discuss { display: none; }
  .nav-right { gap: 12px; }

  /* Mobile nav menu */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark) !important;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }

  /* Sections */
  #why-us, #portfolio, #about,
  #testimonials, #faq, #final-cta { padding: 56px 0; }

  .section-title { font-size: 26px; }

  /* Hero */
  .hero-logo-wrap { top: 108px; left: 20px; }
  .hero-content { bottom: 36px; padding: 0 20px; }
  .hero-content h1 { font-size: 32px; }
  .hero-sub { font-size: 12px; }
  .hero-tags { flex-wrap: wrap; gap: 8px; }

  /* Quote CTA */
  #quote-cta { padding: 72px 0; }
  .quote-cta-content h2 { font-size: 26px; }
  .quote-cta-content p { font-size: 13px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* How We Work */
  .hw-top { grid-template-columns: 1fr; }
  .hw-cards { grid-template-columns: 1fr 1fr; }
  .hw-photo { height: 340px; }
  .hw-phases { flex-wrap: wrap; padding: 18px 20px; }
  .hw-phase { flex: 0 0 50%; padding: 12px 12px; border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hw-phase:nth-child(2n) { border-right: none; }
  .hw-phase:last-child { border-bottom: none; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* About */
  .about-studio-label { display: none; }
  .about-checks { grid-template-columns: 1fr; }

  /* Footer */
  .footer-main { padding: 40px 0; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hw-photo { height: 460px; }
  .hw-cards { grid-template-columns: 1fr; }
  .hw-phase { flex: 0 0 100%; border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { grid-column: auto; }
  .hero-logo-wrap { top: 104px; left: 16px; }
}
