/* ============================================
   AJ BUILD — Global Stylesheet
   Palette 3: Artisan Bold
   Primary: Off-White #F5F5F0
   Wood Tone: Medium Cherry #8B4513
   Accent: Slate Blue #4A5F7A
   Highlight: Burnt Orange #CC5500
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --off-white: #F5F5F0;
  --cream: #EDE8DF;
  --cherry: #8B4513;
  --cherry-light: #A0602E;
  --slate: #4A5F7A;
  --slate-dark: #3A4D65;
  --orange: #CC5500;
  --orange-glow: #E06600;
  --charcoal: #2A2A2A;
  --warm-gray: #7A7368;
  --light-gray: #D4CFC7;
  --forest: #3B5E3A;
  --sand: #C9B99A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --nav-height: 80px;
  --max-width: 1200px;
  --section-pad: 100px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(245, 245, 240, 0.97);
  box-shadow: 0 2px 20px rgba(42, 42, 42, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cherry);
  letter-spacing: 0.03em;
}

.nav-logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--cherry);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

/* ---- HERO SECTIONS ---- */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 42, 42, 0.3) 0%,
    rgba(42, 42, 42, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 800px;
  animation: fadeUp 1.2s ease both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content .motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--sand);
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ---- PAGE HERO (shorter for interior pages) ---- */
.page-hero {
  min-height: 45vh;
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-glow);
  border-color: var(--orange-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(204, 85, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-dark {
  background: transparent;
  color: var(--cherry);
  border-color: var(--cherry);
}

.btn-dark:hover {
  background: var(--cherry);
  color: #fff;
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad) 40px;
}

.section-narrow {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--cherry);
  margin-bottom: 12px;
}

.section-heading .leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading .leaf-divider .line {
  width: 50px;
  height: 1px;
  background: var(--sand);
}

.section-heading .leaf-divider .leaf {
  font-size: 1.2rem;
  color: var(--forest);
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Alternating section backgrounds */
.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--off-white);
}

.section-dark {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark .section-heading h2 {
  color: var(--sand);
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- VALUES GRID ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.value-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: 4px;
  border-left: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(42, 42, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(42, 42, 42, 0.1);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cherry);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--charcoal);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
  opacity: 0.7;
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(42, 42, 42, 0.85));
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-item:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item .overlay h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.portfolio-item .overlay p {
  color: var(--sand);
  font-size: 0.85rem;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: var(--section-pad) 40px;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  padding: 40px 32px 32px;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(42, 42, 42, 0.06);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cherry);
}

/* ---- CONTACT FORM ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cherry);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--warm-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}

.contact-detail .text strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.contact-detail .text span {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.contact-detail .text a {
  color: var(--slate);
}

.contact-detail .text a:hover {
  color: var(--orange);
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 20px rgba(42, 42, 42, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(74, 95, 122, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 40px 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-links ul a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--orange);
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* ---- ABOUT PAGE SPECIFIC ---- */
.founder-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.founder-image {
  position: relative;
}

.founder-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(42, 42, 42, 0.15);
}

.founder-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cherry);
  margin-bottom: 8px;
}

.founder-text .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 24px;
}

.founder-text p {
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ---- SERVICES LIST ---- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-tag {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--cherry);
  border-radius: 2px;
  border: 1px solid rgba(139, 69, 19, 0.12);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root {
    --section-pad: 70px;
  }

  .site-nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--off-white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .founder-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .page-hero {
    min-height: 35vh;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 20px;
  }

  .site-nav {
    padding: 0 16px;
  }

  .hero-content {
    padding: 24px;
  }

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

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