/* ============================================================
   Mas Income Tax Services — Styles
   Palette: Terracotta (#C4725A) + Sand (#F5E6D3)
   Fonts: DM Serif Display + Inter
   ============================================================ */

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

:root {
  --terra:        #C4725A;
  --terra-dark:   #A85A44;
  --terra-light:  #D4917A;
  --sand:         #F5E6D3;
  --sand-light:   #FFF8F5;
  --sand-mid:     #EDE0D0;
  --cream:        #FEFCFA;
  --text-dark:    #2C1810;
  --text-mid:     #5C4033;
  --text-light:   #8B7365;
  --white:        #FFFFFF;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --shadow-sm:    0 2px 8px rgba(44,24,16,0.06);
  --shadow-md:    0 8px 32px rgba(44,24,16,0.10);
  --shadow-lg:    0 16px 64px rgba(44,24,16,0.12);
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,114,90,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-ghost:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254,252,250,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,114,90,0.1);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.logo-text { font-weight: 400; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header nav > ul {
  display: flex;
  gap: 32px;
}

.site-header nav > ul > li > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: color var(--transition);
}

.site-header nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transition: width var(--transition);
}

.site-header nav > ul > li > a:hover {
  color: var(--terra);
}

.site-header nav > ul > li > a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(254,252,250,0.98);
  backdrop-filter: blur(20px);
}

.mobile-nav.active { display: flex; align-items: center; justify-content: center; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-link {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--text-dark);
  transition: color var(--transition);
}

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

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 50%, var(--sand-mid) 100%);
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(196,114,90,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,230,211,0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--terra);
  background: rgba(196,114,90,0.1);
  border: 1px solid rgba(196,114,90,0.2);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-headline em {
  color: var(--terra);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* Hero visual */
.hero-visual { position: relative; }

.hero-image-stack {
  position: relative;
  padding-left: 40px;
}

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

.hero-img-main {
  width: 100%;
  aspect-ratio: 520/640;
}

.hero-img-main img,
.hero-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

.hero-stat-card {
  position: absolute;
  top: 60px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 2;
}

.stat-number {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(196,114,90,0.08);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196,114,90,0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(196,114,90,0.1), rgba(196,114,90,0.05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.service-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--terra);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--sand-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 560/480;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 50%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--sand-light);
  aspect-ratio: 280/320;
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content { max-width: 480px; }

.about-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--sand-mid);
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: var(--terra);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ---------- WHY US ---------- */
.why-us {
  padding: 100px 0;
  background: var(--cream);
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content { max-width: 520px; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

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

.why-check {
  width: 28px;
  height: 28px;
  background: rgba(196,114,90,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-title {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.why-visual { position: relative; }

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 480/600;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-quote-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--terra);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  max-width: 320px;
  box-shadow: var(--shadow-md);
}

.why-quote-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
}

.quote-attr {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
  font-style: normal;
}

/* ---------- PROCESS ---------- */
.process {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
}

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

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3rem;
  color: var(--terra);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.step-connector {
  display: none;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { max-width: 480px; }

.contact-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,114,90,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-detail span {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-phone:hover .contact-icon {
  background: var(--terra);
}
.contact-phone:hover .contact-icon svg {
  stroke: var(--white);
}

.contact-email:hover .contact-icon {
  background: var(--terra);
}
.contact-email:hover .contact-icon svg {
  stroke: var(--white);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196,114,90,0.08);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-mid);
  border-radius: var(--radius-sm);
  background: var(--sand-light);
  color: var(--text-dark);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,114,90,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(45,106,79,0.06);
  border: 1px solid rgba(45,106,79,0.15);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-success.visible {
  display: flex;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,248,245,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,248,245,0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,248,245,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--terra-light);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-contact-list a {
  color: rgba(255,248,245,0.6);
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: var(--terra-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  font-size: 0.8rem;
  color: rgba(255,248,245,0.4);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: content always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { display: none; }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .why-us-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-content,
  .why-content,
  .contact-info { max-width: 100%; }

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-header nav { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 12px; }

  .services { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .about { padding: 72px 0; }
  .about-img-float { display: none; }
  .about-stats { flex-wrap: wrap; gap: 24px; }

  .why-us { padding: 72px 0; }
  .why-quote-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 20px;
    max-width: 100%;
  }

  .process { padding: 72px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }

  .contact { padding: 72px 0; }
  .contact-form-wrap { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .service-card { padding: 28px 22px; }
}
