/* ==========================================================================
   Cotswold Accounting — Site Styles
   Theme: charcoal #2e2e2e / sage green #7a9e6e / warm white #f7f6f3
   ========================================================================== */

/* ---------- Reset & Base ---------- */

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

:root {
  --charcoal:       #2e2e2e;
  --charcoal-light: #4a4a4a;
  --sage:           #7a9e6e;
  --sage-dark:      #5f7f54;
  --sage-pale:      #e8f0e5;
  --cream:          #f7f6f3;
  --white:          #ffffff;
  --border:         #e0ddd7;
  --text:           #3a3a3a;
  --text-muted:     #6b6b6b;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', system-ui, sans-serif;

  --radius:         6px;
  --radius-lg:      12px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.14);

  --max-w:          1140px;
  --section-gap:    80px;
  --transition:     0.25s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utilities ---------- */

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

.section { padding: var(--section-gap) 0; }
.section-light { background: var(--cream); }
.section-dark  { background: var(--charcoal); }
.section-sage  { background: var(--sage-pale); }

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center h2 { margin: 0 auto; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.section-label-light { color: var(--sage-pale); }

.section-intro {
  font-size: 1.1rem;
  color: #afc8a7;
  max-width: 640px;
  margin: 16px auto 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122,158,110,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
  padding: 10px 22px;
  font-size: 0.88rem;
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo-link { display: block; flex-shrink: 0; }
.logo { height: 60px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal-light);
  padding: 6px 12px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--charcoal); background: var(--cream); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(122,158,110,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(122,158,110,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-accent {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(122,158,110,.15);
  pointer-events: none;
}
.hero-accent::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(122,158,110,.1);
}

/* ---------- About ---------- */

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

.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--text-muted); }
.about-text strong { color: var(--charcoal); }

.about-card-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 12px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.quote-attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: 0.03em;
}

/* ---------- Services ---------- */

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

.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(122,158,110,.5);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--sage);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { color: var(--white); margin-bottom: 10px; }
.service-card p  { color: rgba(255,255,255,.62); font-size: 0.95rem; margin: 0; }

.services-cta { text-align: center; }

/* ---------- Success Stories ---------- */

.story-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}

.story-company {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.story-card h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.story-card p { color: var(--text-muted); }
.story-card strong { color: var(--charcoal); }

/* ---------- Testimonials ---------- */

.testimonials-placeholder {
  text-align: center;
  padding: 40px;
  border: 2px dashed rgba(122,158,110,.4);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
}
.testimonials-placeholder p {
  color: var(--charcoal-light);
  font-size: 1.05rem;
  margin: 0;
}
.testimonials-placeholder a {
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact ---------- */

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

.contact-text h2 { margin-bottom: 20px; }
.contact-text p  { color: var(--text-muted); }
.contact-text strong { color: var(--charcoal); }

.contact-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--sage);
}

.contact-list a {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--sage); }

.contact-card-inner {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.contact-card-inner h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-card-inner p {
  color: rgba(255,255,255,.68);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  padding: 48px 0;
  border-top: 3px solid var(--sage);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo { opacity: 0.85; transition: opacity var(--transition); }
.footer-logo:hover { opacity: 1; }
.logo-footer { height: 80px; }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
  margin: 0;
}

/* ---------- Grid helper ---------- */

.section-grid {
  display: grid;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }

  .hero { padding: 72px 0 60px; }

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

  .story-card {
    padding: 32px 24px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-card-inner {
    padding: 32px 24px;
  }

  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Selection highlight ---------- */

::selection { background: var(--sage-pale); color: var(--charcoal); }
