/* ==========================================================================
   ClaroSi — Shared Stylesheet
   clarosi.ie | Automation Consultancy for Irish SMEs
   Genesis-inspired: clean, minimal, professional, generous whitespace
   Mobile-first. Breakpoint: 768px.
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

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

body {
  background-color: #FDFAF6;
  color: #1A1A1A;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A1A;
}

/* Mobile sizes (base) */
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p {
  margin-bottom: 1em;
}

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

/* ==========================================================================
   3. LAYOUT — Container & Sections
   ========================================================================== */

.container {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section--alt {
  background-color: #F5F0EA;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FDFAF6;
  border-bottom: 1px solid #E8E3DC;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Hamburger button */
.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1A1A1A;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.nav-hamburger:hover span {
  opacity: 0.6;
}

/* ==========================================================================
   5. NAV OVERLAY (mobile menu)
   ========================================================================== */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(26, 26, 26, 0.5);
}

.nav-overlay--open {
  display: block;
}

.nav-overlay__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 90vw;
  background-color: #FDFAF6;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.nav-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  color: #5C5C5C;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.nav-overlay__close:hover {
  color: #1A1A1A;
}

.nav-overlay__links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay__links a {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  color: #5C5C5C;
  padding: 14px 0;
  border-bottom: 1px solid #E8E3DC;
  transition: color 0.2s;
}

.nav-overlay__links a:hover {
  color: #9A7B4F;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 18px;
  color: #5C5C5C;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   7. CARDS GRID
   ========================================================================== */

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

.card {
  background-color: #FDFAF6;
  border-top: 3px solid #D4AF85;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  font-size: 16px;
  color: #5C5C5C;
}

/* ==========================================================================
   8. SERVICE BLOCKS
   ========================================================================== */

.service-block {
  padding: 48px 0;
  border-bottom: 1px solid #E8E3DC;
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h3 {
  font-size: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-block p {
  font-size: 16px;
  color: #5C5C5C;
  margin-bottom: 20px;
  max-width: 680px;
}

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

.service-outcome {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2D6A4F;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-outcome::before {
  content: '✓';
  font-size: 13px;
}

.service-price {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #9A7B4F;
}

/* ==========================================================================
   9. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: #D4AF85;
  color: #1A1A1A;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #D4AF85;
  transition: background-color 0.2s, border-color 0.2s;
  line-height: 1;
}

.btn:hover {
  background-color: #C49B6E;
  border-color: #C49B6E;
}

.btn--outline {
  background-color: transparent;
  color: #9A7B4F;
  border: 2px solid #9A7B4F;
}

.btn--outline:hover {
  background-color: #D4AF85;
  color: #1A1A1A;
}

/* ==========================================================================
   10. CTA BANNER
   ========================================================================== */

.cta-banner {
  background-color: #1A1A1A;
  color: #FDFAF6;
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: #FDFAF6;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  font-size: 16px;
  color: #A8A8A8;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Button in dark context — gold bg already works, just ensure contrast */
.cta-banner .btn {
  background-color: #D4AF85;
  border-color: #D4AF85;
  color: #1A1A1A;
}

.cta-banner .btn:hover {
  background-color: #C49B6E;
  border-color: #C49B6E;
}

/* ==========================================================================
   11. CALLOUT (grant funding / info boxes)
   ========================================================================== */

.callout {
  border-left: 3px solid #D4AF85;
  background-color: #F5F0EA;
  padding: 20px 24px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  border-radius: 0 4px 4px 0;
}

.callout p {
  margin-bottom: 0;
}

/* ==========================================================================
   12. CONTACT PAGE
   ========================================================================== */

.contact-page {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-page h1,
.contact-page h2 {
  margin-bottom: 16px;
}

.contact-page p {
  color: #5C5C5C;
}

.calendly-embed {
  max-width: 480px;
  margin: 40px auto 0;
  min-height: 200px;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #E8E3DC;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #5C5C5C;
}

.footer a {
  color: #9A7B4F;
  transition: color 0.2s;
}

.footer a:hover {
  color: #7A6140;
}

.footer p {
  margin-bottom: 6px;
}

/* ==========================================================================
   14. UTILITIES
   ========================================================================== */

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

.text-muted { color: #5C5C5C; }

.mt-2 { margin-top: 16px; }

.mb-2 { margin-bottom: 16px; }

/* ==========================================================================
   15. RESPONSIVE — 768px and above
   ========================================================================== */

@media (min-width: 768px) {

  /* Typography */
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }

  /* Sections */
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section--alt {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Hero */
  .hero h1 {
    font-size: 48px;
  }

  /* Cards — 2 columns */
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Service meta — inline row */
  .service-meta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  /* CTA banner headline */
  .cta-banner h2 {
    font-size: 32px;
  }

}
