/* ============================================
   ALINËA ACCOUNTING SOLUTIONS
   Global Stylesheet
   ============================================ */

/* --- Custom Properties (Brand Identity Spectrum v1.0) --- */
:root {
  /* ── PRIMARY BRAND COLORS ── */
  --charcoal: #2B2D2F;
  --charcoal-light: #3A3C3E;
  --charcoal-90: rgba(43,45,47,0.9);
  --charcoal-70: rgba(43,45,47,0.7);
  --charcoal-50: rgba(43,45,47,0.5);
  --charcoal-30: rgba(43,45,47,0.3);
  --charcoal-15: rgba(43,45,47,0.15);
  --charcoal-05: rgba(43,45,47,0.05);

  --teal: #2A9D8F;
  --teal-dark: #1E7A6F;
  --teal-darker: #165A52;
  --teal-light: #D4EFED;
  --teal-faint: #EDF8F7;
  --teal-90: rgba(42,157,143,0.9);
  --teal-70: rgba(42,157,143,0.7);
  --teal-50: rgba(42,157,143,0.5);
  --teal-30: rgba(42,157,143,0.3);
  --teal-15: rgba(42,157,143,0.15);
  --teal-05: rgba(42,157,143,0.05);

  /* ── NEUTRALS & BACKGROUNDS ── */
  --warm-white: #FAFAF8;
  --surface: #F0F0EE;
  --body-text: #4A4A4A;
  --muted: #8A8A8A;
  --border: #E2E2DF;
  --white: #FFFFFF;

  /* ── TYPOGRAPHY ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* ── LAYOUT ── */
  --nav-height: 72px;
  --max-width: 1140px;
  --section-pad: 120px;
  --section-pad-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--teal-15);
  color: var(--charcoal);
}

::-moz-selection {
  background: var(--teal-15);
  color: var(--charcoal);
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

/* Brand-compliant focus ring */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Inline link style */
p a, .inline-link {
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px solid var(--teal-30);
  transition: color 0.3s, border-color 0.3s;
}

p a:hover, .inline-link:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(30px, 3.5vw, 42px); margin-bottom: 24px; }
h3 { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: 16px; }
h4 { font-size: 20px; margin-bottom: 12px; }

p {
  font-size: 16px;
  line-height: 1.75;
  max-width: 640px;
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
}

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

.section {
  padding: var(--section-pad) 0;
}

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

.section--dark p {
  color: #B8B8B8;
}

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

.section--surface {
  background: var(--surface);
}

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

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

.section--teal p {
  color: rgba(255,255,255,0.85);
}

/* --- Divider --- */
.divider {
  width: 80px;
  height: 2px;
  background: var(--teal);
  margin-bottom: 40px;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
  display: flex;
  align-items: center;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img,
.nav__logo svg {
  height: 36px;
  width: auto;
}

/* Interior pages: white logo over dark page-header, charcoal when scrolled */
body:has(.page-header) .nav .nav-logo-svg text {
  fill: #FFFFFF;
  transition: fill 0.4s;
}

body:has(.page-header) .nav--scrolled .nav-logo-svg text {
  fill: #2B2D2F;
}

body:has(.page-header) .nav .nav-logo-svg rect {
  transition: fill 0.4s;
}

/* Interior pages: white nav links over dark page-header */
body:has(.page-header) .nav .nav__links a {
  color: rgba(255,255,255,0.85);
}

body:has(.page-header) .nav .nav__links a:hover {
  color: var(--teal-light);
}

body:has(.page-header) .nav--scrolled .nav__links a {
  color: var(--charcoal);
}

body:has(.page-header) .nav--scrolled .nav__links a:hover {
  color: var(--teal);
}

/* Mobile hamburger lines on dark headers */
body:has(.page-header) .nav .nav__toggle span {
  background: #FFFFFF;
}

body:has(.page-header) .nav--scrolled .nav__toggle span {
  background: var(--charcoal);
}

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

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--teal);
}

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--teal);
  padding: 10px 24px;
  border-radius: 2px;
  transition: background 0.3s;
  letter-spacing: 0.3px;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
}

/* Mobile Nav */
.nav__toggle {
  display: none;
  background: none;
  width: 32px;
  height: 32px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

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

.btn--outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--teal);
}

.btn--white:hover {
  background: var(--teal-light);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero .label {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 680px;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 48px;
  letter-spacing: 0.5px;
}

.hero__line {
  position: absolute;
  bottom: 160px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__line.animate {
  width: 40%;
}

/* Hero Bars (decorative, echoing logo) */
.hero__bars {
  position: absolute;
  right: 8%;
  bottom: 10%;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  opacity: 0.07;
}

.hero__bars .bar {
  width: 48px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  position: relative;
}

.hero__bars .bar:nth-child(2)::after,
.hero__bars .bar:nth-child(3)::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.hero__bars .bar:nth-child(1) { height: 100px; }
.hero__bars .bar:nth-child(2) { height: 200px; }
.hero__bars .bar:nth-child(3) { height: 320px; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Pain Points Grid --- */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

.pain-item {
  background: var(--charcoal-light);
  padding: 36px 40px;
  position: relative;
}

.pain-item::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 0;
  width: 3px;
  height: 20px;
  background: var(--teal);
}

.pain-item p {
  font-size: 17px;
  font-style: italic;
  color: #ccc;
  max-width: none;
}

/* --- Service Tier Cards --- */
.tier-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.tier-card:nth-child(1)::before { opacity: 0.3; }
.tier-card:nth-child(2)::before { opacity: 0.5; }
.tier-card:nth-child(3)::before { opacity: 0.75; }
.tier-card:nth-child(4)::before { opacity: 1; }

.tier-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 157, 143, 0.08);
}

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

.tier-card__num {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 12px;
}

.tier-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
  margin-top: 0;
}

.tier-card__sub {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
}

.tier-card p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.65;
  flex-grow: 1;
}

.tier-card__items {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.tier-card__items li {
  font-size: 14px;
  color: var(--body-text);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.tier-card__items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 1.5px;
  background: var(--teal);
}

/* --- Ascending Bars Visual --- */
.ascending-bars {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin: 48px 0;
  height: 320px;
}

.ascending-bar {
  flex: 1;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
}

.ascending-bar::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.ascending-bar:nth-child(1) { height: 25%; opacity: 0.5; }
.ascending-bar:nth-child(2) { height: 45%; opacity: 0.65; }
.ascending-bar:nth-child(3) { height: 70%; opacity: 0.85; }
.ascending-bar:nth-child(4) { height: 100%; opacity: 1; }

.ascending-bar__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.ascending-bar__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-top: 4px;
}

/* --- Approach Steps --- */
.approach-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.approach-flow::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  width: 84%;
  height: 2px;
  background: var(--teal-light);
}

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

.approach-step__dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.approach-step h3 {
  font-size: 22px;
  margin-bottom: 12px;
  margin-top: 0;
}

.approach-step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 220px;
  line-height: 1.6;
}

/* --- Values / Philosophy --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-item {
  padding: 36px;
  border-left: 2px solid var(--teal);
}

.value-item h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- "Alinëa to..." motif --- */
.alinea-to {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 16px;
}

.alinea-to strong {
  font-weight: 700;
  font-style: normal;
}

/* --- Quote / Pullquote --- */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 600px;
  padding-left: 32px;
  border-left: 3px solid var(--teal);
  margin: 48px 0;
}

.section--dark .pullquote {
  color: var(--white);
}

/* --- Who We Serve / Profile --- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.profile-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.profile-item__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.profile-item__label {
  font-size: 14px;
  color: var(--muted);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
  margin-top: 48px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-alt {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.contact-alt p {
  font-size: 15px;
  color: var(--muted);
}

.contact-alt a {
  color: var(--teal);
  font-weight: 600;
  transition: color 0.3s;
}

.contact-alt a:hover {
  color: var(--teal-dark);
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  padding: 60px 0;
}

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

.footer__brand img,
.footer__brand svg {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--teal);
}

.footer__copy {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-light);
  font-size: 12px;
  color: #666;
}

/* --- Page Header (interior pages) --- */
.page-header {
  padding: 160px 0 80px;
  background: var(--charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 48px;
  width: 160px;
  height: 3px;
  background: var(--teal);
}

.page-header .alinea-to {
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.page-header .alinea-to strong {
  color: var(--teal);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-header p {
  color: #999;
  font-size: 18px;
  max-width: 560px;
}

/* --- Capability Cards --- */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.capability-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 2px;
  transition: all 0.3s;
}

.capability-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.06);
}

.capability-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.capability-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.two-col--offset {
  grid-template-columns: 5fr 4fr;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .tier-overview { grid-template-columns: 1fr 1fr; }
  .approach-flow { grid-template-columns: 1fr 1fr; gap: 40px; }
  .approach-flow::before { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--offset { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --nav-height: 64px;
  }

  .container { padding: 0 24px; }

  .nav__inner { padding: 0 24px; }
  .nav__links { 
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav__links.open { display: flex; }
  .nav__links a { font-size: 18px; }
  .nav__toggle { display: flex; }

  .tier-overview { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-item { padding: 28px 32px; }
  .approach-flow { grid-template-columns: 1fr; gap: 32px; }
  .profile-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { flex-direction: column; gap: 16px; }

  .ascending-bars { height: 240px; gap: 12px; }

  .page-header { padding: 120px 0 60px; }
  .page-header::after { left: 24px; }
}
