/* ============================================================
   Teli Constructions — Main Stylesheet
   Timber & Craft theme — warm, elegant, natural
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Timber palette */
  --timber-dark:   #3b2a1a;   /* deep walnut */
  --timber-mid:    #6b4226;   /* rich mahogany */
  --timber-warm:   #8b5e3c;   /* warm cedar */
  --timber-light:  #c49a6c;   /* honey oak */
  --gold:          #c8922a;   /* aged brass */
  --gold-light:    #e8b86d;   /* warm gold */
  --cream:         #faf6f0;   /* warm off-white */
  --cream-dark:    #f0e8dc;   /* warm linen */
  --stone:         #e8e0d5;   /* natural stone */
  --white:         #ffffff;
  --text:          #2a1f14;   /* dark walnut text */
  --text-mid:      #5a4030;   /* mid brown text */
  --text-light:    #8a7060;   /* warm grey text */

  /* Aliases for component use */
  --primary:       var(--timber-dark);
  --primary-dark:  #261a0e;
  --secondary:     var(--gold);
  --accent:        var(--gold-light);
  --bg-light:      var(--cream);

  --shadow:        0 4px 20px rgba(59, 42, 26, 0.10);
  --shadow-hover:  0 8px 30px rgba(59, 42, 26, 0.20);
  --radius:        10px;
  --transition:    all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Use a clean sans-serif for UI elements */
nav, button, .btn, .tab-btn, .section-label,
.stat-label, .footer-col, .contact-card p,
.contact-card a, .hero-sub, .hero-badge {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER & NAV
   ============================================================ */

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(38, 26, 14, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  border-bottom: 1px solid rgba(200, 146, 42, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--timber-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  font-family: 'Segoe UI', sans-serif;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name    { font-size: 1.15rem; font-weight: 700; color: var(--white); font-family: Georgia, serif; letter-spacing: 0.3px; }
.logo-tagline { font-size: 0.65rem; color: var(--gold-light); font-style: italic; font-family: 'Segoe UI', sans-serif; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(200, 146, 42, 0.18);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.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); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--primary-dark);
  padding: 16px 20px;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(200, 146, 42, 0.2);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: rgba(200, 146, 42, 0.18);
  color: var(--gold-light);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  min-height: 84vh;
  /* Use a 640x480 gallery image — proper aspect ratio, no stretch */
  background:
    linear-gradient(
      to bottom,
      rgba(18, 12, 7, 0.76) 0%,
      rgba(34, 23, 14, 0.66) 48%,
      rgba(18, 12, 7, 0.86) 100%
    ),
    url('../images/decks/03.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 20px 36px;
}

.hero-content { max-width: 800px; color: var(--white); }

.hero-badge {
  display: inline-block;
  background: rgba(200, 146, 42, 0.20);
  border: 1px solid rgba(232, 184, 109, 0.6);
  color: var(--gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.6rem, 6.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero-title span { color: var(--gold-light); }

.hero-tagline {
  font-size: clamp(1.15rem, 2.9vw, 1.6rem);
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 10px;
  font-style: italic;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 30px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--timber-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 146, 42, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-size: 2.55rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  font-family: Georgia, serif;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stat-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 6px;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

section { padding: 80px 20px; }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  color: var(--timber-warm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--timber-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--timber-warm), var(--gold));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   ABOUT
   ============================================================ */

#about { background: var(--cream-dark); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid transparent;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--gold);
}

.about-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, rgba(151, 191, 13, 0.08), rgba(44, 95, 45, 0.03));
  border: 1px solid rgba(44, 95, 45, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--timber-mid);
  transition: var(--transition);
}

.about-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
}

.about-card:hover .about-icon {
  color: var(--gold);
  border-color: rgba(151, 191, 13, 0.28);
}

.about-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--timber-dark); margin-bottom: 12px; font-family: Georgia, serif; }
.about-card p  { font-size: 0.92rem; color: var(--text-light); line-height: 1.75; font-family: 'Segoe UI', sans-serif; }

/* ============================================================
   SERVICES
   ============================================================ */

#services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--stone);
  cursor: default;
}

.service-card:hover {
  background: var(--timber-dark);
  color: var(--white);
  border-color: var(--timber-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
  color: var(--timber-warm);
  transition: var(--transition);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.service-card:hover .service-icon { color: var(--gold-light); }

.service-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--timber-mid); transition: var(--transition); font-family: 'Segoe UI', sans-serif; }
.service-card:hover h3 { color: var(--gold-light); }

/* ============================================================
   GALLERY
   ============================================================ */

#gallery { background: var(--cream-dark); }

.gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-tabs::-webkit-scrollbar        { height: 4px; }
.gallery-tabs::-webkit-scrollbar-track  { background: transparent; }
.gallery-tabs::-webkit-scrollbar-thumb  { background: var(--gold); border-radius: 2px; }

.tab-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--timber-warm);
  background: transparent;
  color: var(--timber-mid);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--timber-dark);
  color: var(--gold-light);
  border-color: var(--timber-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--stone);
  box-shadow: 0 2px 8px rgba(59, 42, 26, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 42, 26, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { background: rgba(59, 42, 26, 0.50); }

.gallery-overlay svg {
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
  color: var(--white);
}

.gallery-item:hover .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-item.hidden { display: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.3); }

#lb-prev { left: 20px; }
#lb-next { right: 20px; }

#lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

#lb-close:hover { background: rgba(220, 50, 50, 0.6); }

.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  z-index: 10000;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

#testimonials {
  background: var(--timber-dark);
  color: var(--white);
  position: relative;
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/verandahs/01.jpg') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

#testimonials .container { position: relative; }

#testimonials .section-title { color: var(--cream); font-family: Georgia, serif; }
#testimonials .section-label { color: var(--gold-light); }
#testimonials .section-desc  { color: rgba(250, 246, 240, 0.70); }
#testimonials .divider { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(250, 246, 240, 0.07);
  border: 1px solid rgba(200, 146, 42, 0.25);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(250, 246, 240, 0.12);
  border-color: rgba(200, 146, 42, 0.5);
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(250, 246, 240, 0.85);
  font-style: italic;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */

#contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--stone);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.contact-icon.green { background: linear-gradient(135deg, var(--timber-mid), var(--timber-light)); }
.contact-icon.gold  { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

.contact-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--timber-dark); margin-bottom: 12px; font-family: Georgia, serif; }

.contact-card p,
.contact-card a { font-size: 0.93rem; color: var(--text-light); line-height: 1.7; font-family: 'Segoe UI', sans-serif; }

.contact-card a { color: var(--timber-mid); font-weight: 600; transition: var(--transition); }
.contact-card a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--primary-dark);
  color: rgba(250, 246, 240, 0.75);
  padding: 48px 20px 24px;
  border-top: 3px solid var(--gold);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(250, 246, 240, 0.55);
  max-width: 320px;
  margin-top: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a { font-size: 0.87rem; color: rgba(250, 246, 240, 0.55); transition: var(--transition); font-family: 'Segoe UI', sans-serif; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(200, 146, 42, 0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p   { font-size: 0.82rem; color: rgba(250, 246, 240, 0.4); font-family: 'Segoe UI', sans-serif; }
.footer-bottom span { color: var(--gold-light); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */

#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--timber-mid);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 42, 26, 0.35);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
}

#scrollTop.visible { opacity: 1; pointer-events: auto; }

#scrollTop:hover {
  background: var(--gold);
  color: var(--timber-dark);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  section     { padding: 60px 20px; }
  .hero-stats { gap: 24px; }
  .stat-num   { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  #lb-prev { left: 8px; }
  #lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .footer-top    { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-cta      { flex-direction: column; align-items: center; }
}
