/* ========================================
   Forth Digital — Client Site Template
   Mobile-first responsive design

   Customise the CSS variables below for each client.
   The rest of the styles should work as-is.
   ======================================== */

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

:root {
  /* CUSTOMISE THESE PER CLIENT */
  --color-primary: #1a3a5c;
  --color-primary-light: #2c6faa;
  --color-accent: #c0872a;
  --color-accent-hover: #a8741f;

  /* These rarely need changing */
  --color-dark: #1a1a2e;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f0f4f8;
  --color-bg-dark: #1a1a2e;
  --color-border: #e0e6ed;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --font-heading: 'Segoe UI', Roboto, Oxygen, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: var(--radius) !important;
  text-align: center;
  font-weight: 600 !important;
  margin-top: 0.5rem;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0f2b3c 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}


/* --- Hero with background image --- */
.hero-image {
  background-size: cover;
  background-position: center;
  padding: 5rem 0 4rem;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,58,92,0.7) 0%, rgba(26,58,92,0.85) 100%);
}

.hero-image h1,
.hero-image p,
.hero-image .hero-badge,
.hero-image .hero-details {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-highlight {
  background: rgba(255,255,255,0.88);
  color: #1a1a2e;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-shadow: none;
  font-weight: 500;
}

/* --- Page Banner --- */
.page-banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.page-banner-section {
  line-height: 0;
}

.page-banner-section + .section {
  padding-top: 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* --- Prices --- */
.price-section {
  margin-bottom: 2rem;
}

.price-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr {
  border-bottom: 1px solid var(--color-border);
}

.price-table td {
  padding: 0.75rem 0;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.price-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.5rem;
}

.price-highlight {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.price-highlight h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.price-from {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-from small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-light);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.contact-item a {
  font-weight: 500;
}

.hours-table {
  width: 100%;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table td {
  padding: 0.6rem 0;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.map-link {
  display: block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.map-link:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.map-link-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.map-link h3 {
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.map-link p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.map-link .directions {
  color: var(--color-primary-light);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Payment Notice --- */
.payment-notice {
  background: #fef9e7;
  border: 1px solid #f9e79f;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
  color: #fff;
}

.hours-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.hours-list dt {
  font-weight: 400;
}

.hours-list dd {
  font-weight: 600;
  color: #fff;
}

.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-credit {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

.footer-credit a {
  color: rgba(255,255,255,0.5);
}

.footer-credit a:hover {
  color: rgba(255,255,255,0.8);
}

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

  .site-nav {
    display: flex !important;
    position: static;
    border-bottom: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .site-nav a {
    padding: 0;
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 0 !important;
  }

  .hero {
    padding: 5rem 0 4rem;
  }


  .hero-image {
    padding: 6rem 0 5rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .page-banner {
    height: 400px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .section {
    padding: 4rem 0;
  }

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

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

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
