/* Sam's Oven & BBQ Cleaning – Gold Coast
   Option 1: Fresh & Trustworthy – navy, white, darker green. */

:root {
  /* Base palette */
  --color-navy: #1e3a5f;
  --color-white: #ffffff;
  --color-accent: #2d8a6e;
  --color-accent-hover: #259673;
  --color-accent-light: #4da88a;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: light, clean, professional */
  --bg-page: #ffffff;
  --bg-header: #1e3a5f;
  --bg-section: #ffffff;
  --bg-section-alt: #eef2f7;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --text-primary: #2c2c2c;
  --text-secondary: rgba(44, 44, 44, 0.85);
  --text-muted: rgba(44, 44, 44, 0.65);
  /* Bolder borders: navy for structure and contrast */
  --border-subtle: rgba(30, 58, 95, 0.22);
  --border-navy: rgba(30, 58, 95, 0.5);
  --border-accent: rgba(45, 138, 110, 0.5);
  --shadow: rgba(30, 58, 95, 0.12);

  /* Content widths – single source of truth */
  --width-content: min(1100px, 92vw);
  --width-narrow: min(720px, 92vw);
  --width-form: min(42rem, 92vw);
  --width-gallery: min(1200px, 96vw);

  /* Horizontal padding – consistent gutter, scales with viewport */
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --gutter-lg: clamp(1.25rem, 5vw, 2rem);

  /* Spacing scale (modular) */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Section vertical padding */
  --section-block: clamp(2.5rem, 6vw, 4rem);

  /* Component spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
}

/* Skip link for accessibility and crawlers */
.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--gutter);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-4);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout wrappers – all use same centering and gutter */
.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--width-narrow);
}

.container--form {
  max-width: var(--width-form);
}

.container--gallery {
  max-width: var(--width-gallery);
}

/* Header – navy with white text */
.site-header {
  position: static;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.header-inner {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding: var(--space-5) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.logo {
  font-family: var(--font-heading);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.logo-main {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-location {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--color-accent-light);
  text-transform: uppercase;
}

.logo-line {
  width: 3rem;
  height: 2px;
  background: var(--color-accent-light);
  display: inline-block;
}

.logo-line::before {
  content: "";
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-5);
}
@media (min-width: 640px) and (max-width: 899px) {
  .nav {
    width: 100%;
    max-width: var(--width-content);
    justify-content: center;
    gap: var(--space-6);
  }
}

@media (min-width: 900px) {
  .nav {
    width: 100%;
    max-width: var(--width-content);
    justify-content: space-between;
    gap: var(--space-6);
  }
}

.nav a {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--color-white) !important;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
}

.nav a:hover {
  background: transparent;
  color: var(--color-accent-light) !important;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav { gap: var(--space-3); }
  .nav a { font-size: 1rem; }
}

.btn-nav {
  padding: 0;
  background: transparent;
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 0;
}

.btn-nav:hover {
  background: transparent;
  color: var(--color-accent-light) !important;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .btn-nav { font-size: 1rem; }
}

/* hide nav scrollbar visually but keep scrolling usable */
.nav::-webkit-scrollbar { height: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 6px; }


/* Flame Icon Styling */
.nav-icon {
  width: 4.5vw;
  min-width: 36px;
  max-width: 58px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Logo icon spacing */
.logo .nav-icon {
  margin-top: var(--space-2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: var(--color-white);
}

/* Hero */
.hero {
  padding: var(--section-block) var(--gutter);
  text-align: center;
  background: var(--bg-page);
}

.hero-inner {
  width: 100%;
  max-width: var(--width-narrow);
  margin-inline: auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--color-accent);
}

.hero-sub,
.hero-sub2 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin: var(--space-8) 0 var(--space-10);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* This applies the dot to EVERY item, including the first one */
.trust-list li::before {
  content: "•";
  color: var(--color-accent);
  margin-right: var(--space-2);
  font-weight: bold;
}

.hero-tagline {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-accent);
  margin: 0;
}

/* Section common */
.section-dark {
  background: var(--bg-section-alt);
}

section {
  padding: var(--section-block) 0;
}

section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin: 0 0 var(--space-4);
  color: var(--color-accent);
  text-align: center;
}

.section-intro {
  text-align: center;
  margin: 0 auto var(--space-8);
  max-width: var(--width-narrow);
  color: var(--text-muted);
}

/* Gallery */
.gallery .container {
  max-width: var(--width-gallery);
}

.gallery .section-intro {
  margin-bottom: var(--space-10);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.gallery-item {
  margin: 0;
}

.before-after {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-navy);
  box-shadow: 0 2px 12px var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.before-after:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(45, 138, 110, 0.2);
}

.before-after-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(160px, 25vw, 220px);
}

.before,
.after {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.before {
  background: #e8ecf0;
}

.after {
  background: #eef1f5;
  border-left: 2px solid var(--border-navy);
}

/* Click toggle: show after full width */
.before-after.show-after .before-after-inner {
  grid-template-columns: 0 1fr;
}

.before-after.show-after .before {
  overflow: hidden;
  padding: 0;
  min-width: 0;
}

.before-after.show-after .after {
  border-left: none;
}

.placeholder-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gallery image: single image display (spans both columns) */
.gallery-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* Larger gallery images on desktop */
@media (min-width: 1024px) {
  .gallery-image {
    max-height: 420px;
  }
}

.before-after-inner .gallery-image {
  grid-column: 1 / -1;
}

.gallery-caption {
  margin: var(--space-3) 0 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Services – light cards, green accents */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 4px 16px var(--shadow);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.service-card .service-desc {
  margin-bottom: var(--space-2);
}

.service-card .service-price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  margin-top: var(--space-2);
}

/* Why */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: var(--width-narrow);
}

.why-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-8);
  position: relative;
  color: var(--text-secondary);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Process */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-6);
  counter-reset: step;
}

.process-steps li {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-16);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  color: var(--text-secondary);
  font-weight: 500;
}

.step-num {
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
}

.testimonial {
  margin: 0;
  padding: var(--space-6);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-navy);
  border-left: 5px solid var(--color-navy);
}

.testimonial p {
  margin: 0 0 var(--space-3);
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Final CTA – light background */
.cta-final {
  text-align: center;
  padding: var(--section-block) var(--gutter);
  background: var(--bg-section-alt);
}

.cta-final h2 {
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.cta-final p {
  margin: 0 0 var(--space-6);
  color: var(--text-secondary);
}

/* Quote form */
.quote-section {
  background: var(--bg-section-alt);
}

.quote-form {
  width: 100%;
  max-width: var(--width-form);
  margin-inline: auto;
}

.quote-services h3,
.quote-fields h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 var(--space-4);
  color: var(--color-navy);
}

.quote-check-price {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Service quantity rows */
.quote-service-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-navy);
}

.quote-service-row:last-of-type {
  border-bottom: none;
}

.quote-service-info {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.quote-service-name {
  font-weight: 500;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}

.qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.qty-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Fieldset = card box; heading div is the first thing inside */
.quote-service-row fieldset {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: var(--space-2) 0 var(--space-3) 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-navy);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-category-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-3);
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-navy);
}

.quote-service-info label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-type {
  padding: var(--space-2) var(--space-3);
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-navy);
  background: var(--bg-input);
  color: var(--text-primary);
}

/* ensure selects and inputs inside quote-fields match site controls */
.quote-fields input[type="date"],
.quote-fields select,
.quote-fields input[type="file"] {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
}

.quote-fields input[type="file"] {
  padding: var(--space-2) var(--space-2);
}

.quote-fields input[type="date"]:focus,
.quote-fields select:focus,
.quote-fields input[type="file"]:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

/* move qty control to the right for larger screens */
.quote-service-row .qty-control {
  margin-left: auto;
}

/* individual option rows inside a service */
.service-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding: 0 var(--space-4) var(--space-3);
}

.service-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.service-option:last-child {
  border-bottom: none;
}

.service-option .option-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.service-option .option-price {
  margin-left: var(--space-2);
  color: var(--color-accent);
  font-weight: 700;
}

.service-option .qty-control {
  margin-left: auto;
}

.quote-services {
  width: 100%;
  max-width: var(--width-form);
  margin-inline: auto;
}

.quote-total {
  width: 100%;
  max-width: var(--width-form);
  margin: var(--space-6) auto;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-navy);
  font-size: 1.125rem;
  color: var(--text-primary);
}

.quote-total-hint {
  width: 100%;
  max-width: var(--width-form);
  margin: var(--space-2) auto var(--space-6);
}

.quote-fields {
  width: 100%;
  max-width: var(--width-form);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .service-category-heading {
    padding: var(--space-3) var(--space-4) var(--space-2);
  }

  .quote-service-row .qty-control {
    margin-left: 0;
    justify-self: end;
  }
}

.quote-field.field-error input,
.quote-field.field-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

.quote-field.field-error span:first-child {
  color: #c0392b;
}

.quote-services.field-error {
  border: 2px solid #c0392b;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
}

.quote-message {
  margin-bottom: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.quote-message.success {
  background: rgba(45, 138, 110, 0.12);
  border: 2px solid var(--color-accent);
  color: var(--text-primary);
}

.quote-message.error {
  background: rgba(192, 57, 43, 0.1);
  border: 2px solid #c0392b;
  color: #a93226;
}

#quote-total-range {
  color: var(--color-accent);
  font-weight: 700;
}

.quote-fields {
  margin-top: var(--space-8);
}

.quote-fields label {
  display: block;
  margin-bottom: var(--space-5);
}

.quote-fields label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.quote-fields label em {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.quote-fields input,
.quote-fields textarea {
  width: 100%;
  padding: var(--space-3) var(--space-3);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
}

.quote-fields input:focus,
.quote-fields textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

.quote-fields input::placeholder,
.quote-fields textarea::placeholder {
  color: var(--text-muted);
}

.quote-fields select option {
  background: var(--bg-input);
  color: var(--text-primary);
}

.quote-note {
  margin: var(--space-4) 0 var(--space-6);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: var(--space-4);
  font-size: 1.0625rem;
}

/* Contact */

.contact .container {
  text-align: center;
}

.contact-note {
  margin: var(--space-4) 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-details {
  margin-bottom: var(--space-8);
}

.contact-details p {
  margin: var(--space-2) 0;
  color: var(--text-secondary);
}

.contact-details a {
  color: var(--color-accent);
}

.contact-details a:hover {
  text-decoration: underline;
}

.attach-photos {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid var(--border-navy);
}

.attach-photos h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin: 0 0 var(--space-2);
  color: var(--color-navy);
}

.attach-photos p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  padding: var(--space-6) var(--gutter);
  text-align: center;
  background: var(--bg-section-alt);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}


/* Desktop: header and nav */
@media (min-width: 1024px) {
  .header-inner {
    padding: var(--space-10) var(--gutter);
    gap: var(--space-6);
  }

  .logo-main {
    font-size: clamp(2.4rem, 3.75vw, 3rem);
  }

  .logo-location {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  .nav a {
    font-size: 1.2rem;
  }

  .nav-icon {
    max-width: 62px;
  }
}