/* =============================================
   TIMBERLY LOFT - HOME PAGE
   Nav styles are in ../shared/nav.css
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --brown-dark:    #3B1F0F;
  --brown-mid:     #6B3A1F;
  --brown-warm:    #8C4A22;
  --brown-light:   #C48A5C;
  --cream-deep:    #F0E6D3;
  --cream-light:   #FAF6EF;
  --cream-white:   #FFFDF9;
  --text-primary:  #2A1608;
  --text-secondary:#6B5744;
  --text-muted:    #A08060;

   --font-display: 'Host Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h:        80px;
  --section-pad:  clamp(64px, 8vw, 120px);
  --container:    1200px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    24px;

  --transition:   0.3s ease;
  --shadow-soft:  0 4px 24px rgba(59, 31, 15, 0.08);
  --shadow-card:  0 8px 40px rgba(59, 31, 15, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-white);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section-pad { padding: var(--section-pad) 0; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-warm);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--cream-light);
  color: var(--brown-dark);
  border-color: var(--cream-light);
}
.btn-primary:hover {
  background-color: var(--brown-mid);
  border-color: var(--brown-mid);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}
.btn-ghost:hover {
  background-color: var(--brown-dark);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brown-warm);
  border-color: var(--brown-warm);
}
.btn-outline:hover {
  background-color: var(--brown-warm);
  color: var(--cream-light);
}

.btn-lg { padding: 18px 44px; font-size: 1rem; }

/* ===== IMG PLACEHOLDER ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-deep) 0%, #DEC5A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.img-placeholder span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.img-placeholder.tall { min-height: 480px; }


/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background-color: var(--brown-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C48A5C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream-white);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--brown-light);
}

.hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(250, 246, 239, 0.75);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: var(--cream-light);
  border-color: rgba(250, 246, 239, 0.4);
}
.hero .btn-ghost:hover {
  background-color: rgba(250, 246, 239, 0.1);
  border-color: var(--cream-light);
}

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 100vh;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(160deg, #6B3A1F 0%, #3B1F0F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder span {
  font-size: 0.8rem;
  color: rgba(196, 138, 92, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ===== WHAT WE DO ===== */
.what-we-do { background-color: var(--cream-white); }

.wwd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.wwd-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 8px;
}

.feature-card {
  background-color: var(--cream-light);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 1.2rem;
  color: var(--brown-warm);
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FEATURED WORK ===== */
.featured-work { background-color: var(--cream-deep); }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-card--large {
  grid-row: span 2;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--cream-white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.gallery-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.gallery-card--large .gallery-img-wrap { height: 460px; }
.gallery-card:not(.gallery-card--large) .gallery-img-wrap { height: 200px; }

.gallery-img-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.gallery-card:hover .img-placeholder { transform: scale(1.03); }

.gallery-caption {
  padding: 20px 24px;
}
.caption-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-warm);
  background-color: rgba(140, 74, 34, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}
.gallery-caption h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
}

/* ===== WHY CHOOSE US ===== */
.why-us { background-color: var(--cream-white); }

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.why-us-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.why-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown-light);
  opacity: 0.6;
  line-height: 1;
  flex-shrink: 0;
  min-width: 40px;
  padding-top: 2px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background-color: var(--cream-deep); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 56px);
}

.testimonial-card {
  background-color: var(--cream-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-card); }

.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
}

.testimonial-card--accent {
  background-color: var(--brown-dark);
}
.testimonial-card--accent p { color: var(--cream-light); }
.testimonial-card--accent footer strong { color: var(--brown-light); }
.testimonial-card--accent footer span { color: rgba(250,246,239,0.5); }

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial-card footer strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-mid) 0%, var(--brown-dark) 100%);
  padding: clamp(64px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C48A5C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--cream-white);
  margin-bottom: 16px;
}
.cta-subtext {
  font-size: 1rem;
  color: rgba(250, 246, 239, 0.7);
  margin-bottom: 40px;
}
.cta-banner .btn-primary {
  background-color: var(--brown-light);
  border-color: var(--brown-light);
  color: var(--brown-dark);
  font-weight: 600;
}
.cta-banner .btn-primary:hover {
  background-color: var(--cream-light);
  border-color: var(--cream-light);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--brown-dark);
  color: var(--cream-deep);
  padding: clamp(48px, 6vw, 80px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(250, 246, 239, 0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream-white);
  margin-bottom: 14px;
}
.footer-logo span { color: var(--brown-light); }

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(240, 230, 211, 0.65);
  line-height: 1.65;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-contact a,
.footer-contact li {
  font-size: 0.875rem;
  color: rgba(240, 230, 211, 0.7);
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--cream-white); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-links a {
  font-size: 0.875rem;
  color: rgba(240, 230, 211, 0.7);
  transition: color var(--transition);
}
.social-links a:hover { color: var(--brown-light); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(240, 230, 211, 0.35);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-content {
    padding: 100px clamp(20px, 5vw, 60px) 60px;
  }
  .hero-image-wrap {
    min-height: 420px;
    height: 420px;
  }
  .hero-image-placeholder { min-height: 420px; }
  .wwd-inner { grid-template-columns: 1fr; }
  .why-us-inner { grid-template-columns: 1fr; }
  .why-us-image { max-height: 380px; }
  .img-placeholder.tall { min-height: 380px; }

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

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-card--large { grid-row: span 1; }
  .gallery-card--large .gallery-img-wrap,
  .gallery-card:not(.gallery-card--large) .gallery-img-wrap { height: 260px; }

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

  .wwd-features { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}