

/* --- Custom Properties --- */
:root {
  --dark:         #2C2A22;
  --dark-mid:     #4A4637;
  --brown:        #5C5541;
  --olive:        #6B6555;
  --cream:        #FAF7F0;
  --cream-dark:   #F0EBE0;
  --tan:          #E8E0D0;
  --gold:         #B8922F;
  --gold-dark:    #96760E;
  --gold-light:   #D4B44E;
  --white:        #FFFFFF;
  --text:         #2C2A22;
  --text-light:   #6B6555;
  --text-muted:   #918B7E;
  --border:       #DDD6C8;
  --shadow-sm:    0 1px 3px rgba(44,42,34,0.06);
  --shadow-md:    0 4px 16px rgba(44,42,34,0.08);

  --radius:       4px;
  --radius-lg:    8px;
  --transition:   0.25s ease;
  --max-width:    1100px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-light);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .footer {
  margin-top: auto;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text-light);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.3rem; }

p + p { margin-top: 1rem; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 50px 0;
}

.page-header + .section {
  padding-top: 60px;
}

.section--cream {
  background: var(--cream-dark);
}

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

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}


.section-label {
  font-family: var(--font);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: -4px;
}

.section-header {
  margin-bottom: 35px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: 0 auto;
}

.gold-line {
  width: 80px;
  height: 2px;
  background: var(--gold-dark);
  border: none;
  margin: 18px 0 0;
}

.gold-line--center {
  margin: 14px auto 0;
  width: 150px;
}

.gold-rule {
  height: 2px;
  background: var(--gold-dark);
  border: none;
  margin: 5px 0 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

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


.btn + .btn { margin-left: 14px; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-family: var(--font);
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.nav__brand:hover { color: var(--dark); }

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

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  padding: 9px 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}
.nav__cta:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}


/* --- Page Header --- */
.page-header {
  background: var(--dark);
  padding: 52px 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  position: relative;
}

.page-header > .container {
  width: 100%;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header .section-label {
  color: var(--gold-light);
  font-size: 2.3rem;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.1rem;
  margin-top: -4px;
  margin-bottom: 3px;
}

.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

/* --- Numbered Feature Grid (Home) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 52px;
  margin-top: 12px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--font);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  min-width: 40px;
  opacity: 0.7;
  text-align: right;
  height: 1.68rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.feature-item h3 {
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.95rem;
  line-height: 1.65;
}


/* --- Two-Column Split --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--wide-left {
  grid-template-columns: 1.1fr 0.9fr;
}

.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}


/* --- Service Cards (Services Page) --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  padding: 20px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.service-card__detail {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.service-card__detail li {
  font-size: 1rem;
  padding: 5px 0 5px 16px;
  position: relative;
}

.service-card__detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.875em + 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- About Bio --- */
.bio-grid {
  display: grid;
  grid-template-columns: 560px 440px;
  gap: 56px;
  align-items: start;
}

.bio__photo {
  width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.bio__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  transform: scale(1.0);
  transform-origin: center;
}

.bio__name {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.bio__position {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.bio__credentials {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.bio__text {
  max-width: 560px;
}

.bio__text p {
  margin-bottom: 18px;
  line-height: 1.8;
  text-align: justify;
}

/* --- Credentials Grid --- */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.creds-grid--single {
  grid-template-columns: 1fr;
}

.creds-grid li {
  font-size: 1rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.creds-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.75em - 2.5px);
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Form --- */
.form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

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

.form .btn { width: 100%; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 25px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer__inner > div:first-child {
  max-width: 280px;
}

.footer__inner > div:nth-child(2) {
  margin-right: 80px;
}

.footer__brand {
  font-family: var(--font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
}

.footer__links--two-col {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 24px;
  justify-content: start;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.85rem; }
  .section { padding: 37px 0; }

  .split,
  .bio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .bio__photo {
    width: 220px;
    height: 280px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

}

@media (max-width: 768px) {
  .section { padding: 29px 0; }
  .hero { min-height: 420px; }
  .page-header { padding: 36px 0; }
  .page-header h1 { font-size: 1.9rem; }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
  }

  .nav__links.open { display: flex; }

  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle { display: flex; }

  .btn + .btn { margin-left: 0; }

  .form { padding: 28px 20px; }

  .split__image img { height: 280px; }

  /* Bug 1: Stack page-header content and hide logo on mobile */
  .page-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .page-header__inner > img {
    display: none;
  }

  /* Bug 3 & 4: Stack footer columns vertically, clear all desktop-only sizing */
  .footer__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
  }
  .footer__inner > * {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  /* Bug 5: Prevent iOS Safari auto-zoom on form inputs (16px threshold) */
  .form__group input,
  .form__group textarea,
  .form__group select {
    font-size: 1rem;
  }

  /* Bug 6: Scale section labels down from 2.1–2.3rem */
  .section-label { font-size: 1.5rem; }
  .page-header .section-label { font-size: 1.6rem; }

  /* Bug 7: Remove justified text that creates rivers on narrow columns */
  .bio__text p { text-align: left; }

  /* Bug 8: Reduce vertical gaps in stacked layouts */
  .bio-grid, .split, .contact-grid { gap: 32px; }

  /* Bug 9: Prevent nav brand overflow / 2-line wrap next to hamburger toggle */
  .nav__brand {
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
  }
}

/* Bug 10: Extra-small screens — iPhone 14 Pro (393px) and smaller */
@media (max-width: 480px) {
  body { font-size: 16px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }

  .section-label { font-size: 1.3rem; }
  .page-header .section-label { font-size: 1.4rem; }

  .page-header { padding: 28px 0; min-height: auto; }
  .page-header h1 { font-size: 1.6rem; }

  .container { padding: 0 16px; }
  .section { padding: 24px 0; }

  .form { padding: 20px 16px; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }

  .bio__name { font-size: 1.6rem; }
  .bio__position { font-size: 1.1rem; }
  .bio__credentials { font-size: 1.2rem; }

  .nav__brand { font-size: 0.82rem; }
}
