/* === Custom properties === */
:root {
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --fg: #1a1a1a;
  --fg-muted: #666666;
  --border: rgba(0, 0, 0, 0.15);
  --accent: #534ab7;
  --radius-card: 12px;
  --radius-btn: 8px;
  --container: 1100px;
}

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

/* === Base === */
html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

h3 {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}

p {
  color: var(--fg-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* === Section backgrounds === */
.section-white {
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

/* === Nav === */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-weight: 400;
  font-size: 16px;
  color: var(--fg);
  z-index: 110;
  position: relative;
}

.nav-brand:hover {
  opacity: 0.75;
}

/* Hamburger toggle — visible mobile only */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--fg);
  z-index: 110;
  position: relative;
  border-radius: var(--radius-btn);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile nav menu */
.nav-menu {
  display: none;
}

.nav-menu.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.nav-menu.is-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav-menu.is-open .nav-link {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
}

.nav-menu.is-open .nav-cta {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 28px;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 14px;
    color: var(--fg-muted);
    transition: color 0.15s ease;
  }

  .nav-link:hover {
    color: var(--fg);
  }

  .nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 7px 16px;
    transition: border-color 0.15s ease;
  }

  .nav-cta:hover {
    border-color: var(--fg);
  }
}

/* === Hero === */
.hero {
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 0 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero-sub {
  max-width: 420px;
  margin-bottom: 32px;
  font-size: 18px;
}

.hero-cta {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.15s ease;
}

.hero-cta:hover {
  text-decoration-color: var(--fg);
}

.hero-image {
  display: none;
}

.hero-image img {
  width: 800px;
  height: auto;
  position: relative;
  top: 30px;  /* moves image up */
}

@media (min-width: 768px) {
  .hero {
    padding: 32px 0 64px;
  }

  .hero-inner {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }

  .hero-text {
    padding-left: max(16px, calc((100vw - var(--container)) / 2 + 16px));
    padding-right: 0;
  }

  .hero-image {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-left: -70px;
    padding-right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  }
}

/* === About === */
.about {
  padding: 64px 0;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-photo {
  width: 180px;
  height: 220px;
  border-radius: var(--radius-card);
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.about-text h2 {
  margin-bottom: 20px;
  color: var(--fg);
}

.about-text p + p {
  margin-top: 16px;
}

@media (min-width: 768px) {
  .about {
    padding: 80px 0;
  }

  .about-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

}

/* === Services === */
.services {
  padding: 64px 0;
}

.services h2 {
  color: var(--fg);
  margin-bottom: 8px;
}

.section-sub {
  margin-bottom: 48px;
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.card-icon {
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.card h3 {
  color: var(--fg);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
}

.price {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg) !important;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .services {
    padding: 80px 0;
  }

  .card {
    padding: 32px;
  }
}

/* === Process === */
.process {
  padding: 64px 0;
}

.process h2 {
  color: var(--fg);
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-alt);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step h3 {
  color: var(--fg);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .process {
    padding: 80px 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* Connecting line between steps 1, 2, and 3 */
  .steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    width: 50%;
    height: 1px;
    background: var(--border);
    z-index: 0;
  }
}

/* === Testimonials (styles kept ready for when section is uncommented) === */
.testimonials {
  padding: 64px 0;
}

.testimonials h2 {
  color: var(--fg);
  margin-bottom: 48px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.quote-mark {
  font-size: 40px;
  line-height: 1;
  color: var(--border);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

.testimonial-card blockquote p {
  font-size: 15px;
  margin-bottom: 24px;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg) !important;
}

.testimonial-biz {
  font-size: 13px;
}

@media (min-width: 640px) {
  .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }
}

/* === Contact === */
.contact {
  padding: 64px 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.contact-info h2 {
  color: var(--fg);
  margin-bottom: 16px;
}

.contact-intro {
  margin-bottom: 32px;
  max-width: 380px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--fg-muted);
}

.contact-detail svg {
  flex-shrink: 0;
  color: var(--fg-muted);
}

.contact-detail a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.contact-detail a:hover {
  text-decoration-color: var(--fg-muted);
}

@media (min-width: 768px) {
  .contact {
    padding: 80px 0;
  }

  .contact-inner {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }

  .contact-info {
    flex: 1;
  }

  .contact-form-wrapper {
    flex: 1.2;
  }
}

/* === Form === */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}

.required {
  color: var(--fg-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  text-align: center;
  transition: opacity 0.15s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  opacity: 0.88;
}

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

.form-success,
.form-error {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #166534;
}

.form-success p,
.form-error p {
  color: inherit;
}

.form-error {
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}


/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
