/* ===========================
   GLOBAL STYLES & RESET
   =========================== */

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

:root {
  --cream: #F9F6F0;
  --sand: #EDE8DF;
  --clay: #C4A882;
  --rust: #9B5E3A;
  --forest: #2D4A3E;
  --charcoal: #1E1E1E;
  --muted: #6B6560;
  --white: #FFFFFF;
  --error: #e8b89a;
  --success: #8ecfb8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(249, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
  transition: padding 0.3s;
}

nav.scrolled {
  padding: 0.875rem 4rem;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--rust);
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

nav ul li a:hover {
  color: var(--forest);
}

nav ul li a[aria-current="page"] {
  color: var(--forest);
  font-weight: 500;
}

nav ul li a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
}

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s !important;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--rust) !important;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  transition: opacity 0.2s;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(249, 246, 240, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.25rem;
  animation: slideDown 0.3s ease;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.mobile-menu a:hover {
  color: var(--rust);
}

.mobile-menu a.mobile-cta {
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  text-align: center;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}

.mobile-menu a.mobile-cta:hover {
  background: var(--rust);
  transform: translateY(-1px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: var(--sand);
  border-radius: 60% 0 0 60%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--rust);
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.btn-ghost {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.btn-ghost:hover {
  gap: 0.75rem;
}

.btn-ghost:focus {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  min-width: 200px;
  border: 1px solid rgba(196, 168, 130, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .lbl {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ===========================
   INTRO STRIP
   =========================== */

.intro-strip {
  background: var(--forest);
  color: var(--white);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro-strip blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-style: italic;
  max-width: 640px;
  line-height: 1.6;
  opacity: 0.92;
  border: none;
  padding: 0;
}

.tagline-name {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.intro-clients {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.intro-clients strong {
  opacity: 1;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* ===========================
   SECTIONS
   =========================== */

section {
  padding: 6rem 4rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(196, 168, 130, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--clay);
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  background: var(--sand);
  color: var(--forest);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
  background: var(--sand);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--clay), var(--forest));
  border-radius: 24px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.about-photo-placeholder .initials {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(196, 168, 130, 0.3);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-badge .yrs {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--forest);
  line-height: 1;
}

.about-badge .yrs-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--charcoal);
}

.cred-dot {
  width: 6px;
  height: 6px;
  background: var(--rust);
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* ===========================
   CONTACT SECTION & FORMS
   =========================== */

.contact {
  background: var(--charcoal);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact .section-label {
  color: var(--clay);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.contact-info {
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: var(--white);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clay);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e8b89a;
  background: rgba(232, 184, 154, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #8ecfb8;
  background: rgba(142, 207, 184, 0.1);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: #1E1E1E;
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'DM Sans', sans-serif;
}

.form-error {
  display: none;
  font-size: 0.75rem;
  color: #e8b89a;
  margin-top: -0.25rem;
}

.form-group input:invalid:not(:placeholder-shown) ~ .form-error,
.form-group textarea:invalid:not(:placeholder-shown) ~ .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  background: var(--rust);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}

.form-submit:hover:not(:disabled) {
  background: #7a4828;
  transform: translateY(-1px);
}

.form-submit:active:not(:disabled) {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-submit:focus {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.form-message {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.form-message.success {
  background: rgba(45, 74, 62, 0.4);
  border: 1px solid rgba(45, 74, 62, 0.6);
  color: #8ecfb8;
  display: block;
}

.form-message.error {
  background: rgba(155, 94, 58, 0.3);
  border: 1px solid rgba(155, 94, 58, 0.5);
  color: #e8b89a;
  display: block;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: #141414;
  color: rgba(255, 255, 255, 0.4);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

footer .logo {
  font-size: 1rem;
  color: var(--white);
}

footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}

footer a:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ===========================
   SCROLL REVEAL ANIMATION
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   KEYFRAME ANIMATIONS
   =========================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bg {
    width: 100%;
    border-radius: 0;
    top: 65%;
    height: 40%;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    width: 100%;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
  }

  .intro-strip {
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo-placeholder {
    aspect-ratio: 3 / 2;
  }

  .about-badge {
    right: 1rem;
    bottom: -1rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .contact-form {
    padding: 1.75rem;
  }

  footer {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

@media (max-width: 640px) {
  nav {
    padding: 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
    min-height: auto;
    padding-top: 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .intro-strip blockquote {
    font-size: 1rem;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  footer {
    padding: 1rem;
    font-size: 0.75rem;
  }
}