/* ===================================================
   OLDE FORGE BUILDERS — Global Stylesheet
   =================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1e1e1e;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TOKENS ---- */
:root {
  --navy:      #1a2332;
  --navy-mid:  #243044;
  --steel:     #3d5166;
  --amber:     #b8860b;
  --amber-lt:  #d4a017;
  --stone:     #7a6f5e;
  --cream:     #f8f6f1;
  --light-gray:#f2f2f2;
  --mid-gray:  #9aa0a8;
  --border:    #ddd8d0;
  --white:     #ffffff;
  --radius:    6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --transition: 0.25s ease;
  --max-w:     1160px;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTION SPACING ---- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- TYPOGRAPHY HELPERS ---- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 560px;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-sub {
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-lt);
  border-color: var(--amber-lt);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.logo-text strong {
  color: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--amber);
}

.nav-cta {
  background: var(--amber);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--amber-lt);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, rgba(26,35,50,.92) 0%, rgba(26,35,50,.75) 100%),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1400&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.97) 0%, rgba(36,48,68,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=800&q=80') center/cover no-repeat;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-inner {
  text-align: center;
  color: rgba(255,255,255,.35);
}

.about-img-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
}

.about-img-inner p {
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--amber);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge strong {
  display: block;
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.about-badge span {
  font-size: .75rem;
  opacity: .85;
}

.about-text {
  color: #444;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
}

.feature-icon {
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: .93rem;
  color: #555;
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--amber);
}

.service-card .service-link:hover {
  gap: 10px;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.gp-1 { background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=800&q=80') center/cover no-repeat; }
.gp-2 { background: url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=800&q=80') center/cover no-repeat; }
.gp-3 { background: url('https://images.unsplash.com/photo-1620626011761-996317b8d101?w=800&q=80') center/cover no-repeat; }
.gp-4 { background: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=800&q=80') center/cover no-repeat; }
.gp-5 { background: url('https://images.unsplash.com/photo-1560185127-6ed189bf02f4?w=800&q=80') center/cover no-repeat; }
.gp-6 { background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=800&q=80') center/cover no-repeat; }
.gp-7 { background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=800&q=80') center/cover no-repeat; }
.gp-8 { background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?w=800&q=80') center/cover no-repeat; }
.gp-9 { background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=800&q=80') center/cover no-repeat; }

.gp-icon {
  font-size: 2.5rem;
  opacity: 0;
}

.gallery-caption {
  background: var(--white);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-top: none;
}

.gallery-caption h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.gallery-tag {
  font-size: .75rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery-item .gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(26,35,50,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-hover,
.gallery-item:focus-visible .gallery-hover {
  opacity: 1;
}

.gallery-hover-text {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.5);
  padding: 10px 24px;
  border-radius: var(--radius);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-desc {
  color: #555;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  font-size: 1.3rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid-gray);
  margin-bottom: 2px;
}

.contact-detail-item a,
.contact-detail-item span {
  font-size: .95rem;
  color: var(--navy);
}

.contact-detail-item a:hover {
  color: var(--amber);
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.response-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-row {
  margin-bottom: 20px;
}

.contact-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.two-col .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}

.required { color: var(--amber); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--navy);
  background: #fff;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184,134,11,.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.field-error {
  font-size: .8rem;
  color: #c0392b;
  min-height: 18px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 4px;
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #eafaf1;
  border: 1px solid #a8ddb5;
  border-radius: var(--radius);
  color: #1d7a3a;
  font-weight: 600;
  font-size: .93rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111820;
  color: rgba(255,255,255,.5);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.footer-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,1) 0%, rgba(36,48,68,.92) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--amber);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ============================================================
   SERVICES PAGE — Full Descriptions
   ============================================================ */
.service-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.service-full:last-child { border-bottom: none; }

.service-full.reverse { direction: rtl; }
.service-full.reverse > * { direction: ltr; }

.service-full-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.sf-1 { background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=800&q=80') center/cover no-repeat; }
.sf-2 { background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?w=800&q=80') center/cover no-repeat; }
.sf-3 { background: url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?w=800&q=80') center/cover no-repeat; }
.sf-4 { background: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=800&q=80') center/cover no-repeat; }
.sf-5 { background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=800&q=80') center/cover no-repeat; }
.sf-6 { background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=800&q=80') center/cover no-repeat; }

.service-full-img span {
  font-size: 4rem;
  opacity: 0;
}

.service-full-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.service-full-content p {
  color: #555;
  margin-bottom: 14px;
}

.service-full-content .btn {
  margin-top: 8px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-long p {
  color: #444;
  margin-bottom: 16px;
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.value-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: .88rem;
  color: #666;
}

.team-note {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-top: 48px;
}

.team-note h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--white);
}

.team-note p {
  color: rgba(255,255,255,.7);
  max-width: 600px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid,
  .service-full {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-full.reverse { direction: ltr; }

  .about-badge {
    right: 0;
    bottom: -20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 740px) {
  .section { padding: 64px 0; }

  #site-header { background: var(--navy); }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .gallery-grid { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 24px 20px; }

  .two-col { grid-template-columns: 1fr !important; }

  .about-features { grid-template-columns: 1fr; }

  .footer-links { gap: 16px; }
}
