
:root {
  --tone: #00A0D0;
  --tone-deep: #0E70A5;
  --tone-light: #5FC4F0;
  --ink: #17191C;
  --paper: #F7F9FA;
  --card: #FFFFFF;
  --finance-wash: #DFF2FA;
  
  --bg: #FFFFFF;
  --text: var(--ink);
  
  --h1-size: clamp(2.4rem, 5.5vw, 4.1rem);
  --h2-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --text: #ECEEF0;
    --card: #1C1F23;
    --tone: #5FC4F0;
    --tone-deep: #5FC4F0;
    --paper: #121417; /* Re-evaluate if paper needs to be different */
  }
  
  /* specific dark mode overrides below */
  .story-band {
    --ink: #17191C;
  }
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
}


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

body {
  font-family: 'Assistant', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

@font-face {
  font-family: 'Passion One';
  src: url('../fonts/passion-one-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Passion One';
  src: url('../fonts/passion-one-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Assistant';
  src: url('../fonts/assistant-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Assistant';
  src: url('../fonts/assistant-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Passion One', cursive;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--h1-size);
}
h2 {
  font-size: var(--h2-size);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-deep);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: 'Assistant', sans-serif;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
}
.button.outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

/* Ribbon */
.ribbon {
  background: #F2F4F7;
  color: #17191C;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  flex-wrap: wrap;
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .ribbon {
    background: #1C1F23;
    color: #ECEEF0;
  }
}
.ribbon a {
  text-decoration: underline;
  color: var(--tone-deep);
}
.ribbon button {
  background: transparent;
  color: inherit;
  border: none;
  padding: 0.25rem;
  margin-left: auto;
  cursor: pointer;
  min-width: auto;
  min-height: auto;
  font-size: 1.25rem;
  line-height: 1;
}

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--card);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
@media (prefers-color-scheme: dark) {
  .masthead {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.logo .done, .logo .tone {
  font-family: 'Passion One', cursive;
  font-weight: 700;
  color: var(--tone);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.logo .by {
  font-family: 'Passion One', cursive;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  .logo .by { color: #ECEEF0; }
  .logo .done, .logo .tone { color: #00A0D0; } /* keep original tone for logo in dark? Or tone-light? Instructions say accents #5FC4F0. Let's use var(--tone) which is #5FC4F0 in dark. Wait, instructions say: lockup "DONE by TONE" (Passion One: DONE and TONE in --tone, "by" smaller in --ink). In dark mode text #ECEEF0. Let's make "by" var(--text) */
}
.masthead-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.masthead-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}
@media (prefers-color-scheme: dark) {
  .masthead-subtitle { color: #999; }
  .logo .by { color: #ECEEF0; }
  .logo .done, .logo .tone { color: #5FC4F0; } 
}

/* Nav Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-desktop a {
  font-weight: 600;
}
.nav-desktop a.button {
  color: #FFFFFF;
}

/* Nav Mobile */
.nav-mobile {
  display: none;
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile details {
    position: relative;
  }
  .nav-mobile summary {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav-mobile summary::-webkit-details-marker {
    display: none;
  }
  .nav-mobile .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
    z-index: 100;
    border-radius: 6px;
  }
  @media (prefers-color-scheme: dark) {
    .nav-mobile .dropdown {
      border: 1px solid rgba(255,255,255,0.1);
    }
  }
  .masthead-subtitle { display: none; }
}

/* Sticker */
.sticker {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 0.25rem 0.75rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  transform: rotate(-5deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #17191C;
}
.sticker .done, .sticker .tone {
  font-family: 'Passion One', cursive;
  font-weight: 700;
  color: #00A0D0; /* strictly #00A0D0 as instructed to keep as-is */
  font-size: 1.1rem;
  text-transform: uppercase;
}
.sticker .by {
  font-family: 'Passion One', cursive;
  color: #17191C;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Sticky Mobile Call Bar */
.mobile-call-bar {
  display: none;
}
@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--tone-deep);
    color: #FFFFFF;
    text-align: center;
    padding: 1rem;
    justify-content: center;
    font-weight: 600;
    z-index: 50;
  }
  body {
    padding-bottom: 60px; /* space for sticky bar */
  }
}


/* Section styling */
section {
  padding: 4rem 5%;
}
@media (max-width: 767px) {
  section { padding: 3rem 5%; }
}

.kicker {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg);
}
.hero-content {
  flex: 1;
}
.hero-image-wrapper {
  flex: 1;
  position: relative;
}
.hero-image-wrapper img {
  border-radius: 8px;
  width: 100%;
}
.hero-image-wrapper .sticker {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
}
.hero-kicker {
  color: var(--tone-deep);
}
.hero h1 span.tone-blue {
  color: var(--tone);
}
.hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.trust-text {
  font-size: 0.875rem;
  color: inherit;
  opacity: 0.8;
}
.trust-text a {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .hero {
    flex-direction: column;
  }
  .hero-image-wrapper .sticker {
    bottom: 1rem;
    right: 1rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .button {
    width: 100%;
  }
}

/* Story Band */
.story-band {
  background: var(--ink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.story-content {
  flex: 1;
}
.story-kicker {
  color: var(--tone-light);
}
.story-quote {
  font-family: 'Passion One', cursive;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.story-italic {
  font-style: italic;
  color: #C9CED3;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.story-attribution {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--tone-light);
  text-transform: uppercase;
}
.story-image {
  flex: 1;
}
.story-image img {
  border-radius: 8px;
  width: 100%;
}
.story-caption {
  color: #9AA1A8;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
@media (max-width: 767px) {
  .story-band { flex-direction: column; }
}

/* What Tone Fixes */
.fixes-section {
  background: var(--paper);
}
.fixes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.fixes-card {
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.fixes-card-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}
.fixes-card-content {
  padding: 1.5rem;
  flex: 1;
}
.fixes-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.fixes-card h3 {
  font-size: 1.5rem;
  margin: 0;
}


@media (min-width: 768px) {
  .fixes-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
  }
  .fixes-grid.row2 {
    grid-template-columns: 2fr 3fr;
    margin-top: 1.5rem;
  }
}
@media (max-width: 767px) {
  .fixes-grid, .fixes-grid.row2 {
    grid-template-columns: 1fr;
  }
}

/* Financing Band */
.financing-band {
  background: var(--finance-wash);
  color: #17191C;
  display: flex;
  align-items: center;
  gap: 3rem;
}
@media (prefers-color-scheme: dark) {
  .financing-band {
    background: #0E2938;
    color: #ECEEF0;
  }
}
.financing-content {
  flex: 1;
}
.financing-logos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.logos-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.logos-row img {
  height: 40px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .financing-band { flex-direction: column; }
}

/* Customers Say */
.customers-section {
  background: var(--paper);
}
.customers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.customer-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.customer-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.customer-name {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--tone-deep);
}
@media (max-width: 767px) {
  .customers-grid { grid-template-columns: 1fr; }
}

/* Ask Section */
.ask-section {
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  gap: 3rem;
}
@media (prefers-color-scheme: dark) {
  .ask-section { border-top: 1px solid rgba(255,255,255,0.1); }
}
.ask-content {
  flex: 1;
}
.ask-form {
  flex: 1;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 2rem;
}
@media (prefers-color-scheme: dark) {
  .ask-form { border: 1px solid rgba(255,255,255,0.1); }
}
.ask-form h3 {
  font-family: 'Passion One', cursive;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #CCC;
  border-radius: 4px;
  background: #FFF;
  color: #17191C;
  min-height: 44px;
}
@media (prefers-color-scheme: dark) {
  .form-group input {
    background: #1C1F23;
    border-color: #333;
    color: #ECEEF0;
  }
}
.ask-form button {
  width: 100%;
  margin-top: 1rem;
}
.form-note {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}
@media (max-width: 767px) {
  .ask-section { flex-direction: column; }
}

/* Footer */
footer {
  background: var(--ink);
  color: #FFFFFF;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-left .footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.footer-logo .done, .footer-logo .tone {
  font-family: 'Passion One', cursive;
  font-weight: 700;
  color: var(--tone-light);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.footer-logo .by {
  font-family: 'Passion One', cursive;
  color: #FFFFFF;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.footer-text {
  font-size: 0.75rem;
  color: #9AA1A8;
  margin-bottom: 0.25rem;
}
.footer-right {
  text-align: right;
}
.footer-phone {
  color: var(--tone-light);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  display: block;
}
.footer-right a {
  text-decoration: underline;
}
@media (max-width: 767px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-right { text-align: center; }
  .footer-logo { justify-content: center; }
}

/* Services Page Specifics */
.services-hero {
  background: var(--paper);
  text-align: left;
  padding: 4rem 5%;
}
.services-hero h1 {
  max-width: 800px;
}
.services-hero p {
  max-width: 800px;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.service-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg);
}
.service-section:nth-of-type(even) {
  flex-direction: row-reverse;
}
.service-content {
  flex: 1;
}
.service-image {
  flex: 1;
  position: relative;
}
.service-image img {
  border-radius: 8px;
  width: 100%;
}
.service-image .sticker {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}
@media (max-width: 767px) {
  .service-section, .service-section:nth-of-type(even) {
    flex-direction: column;
  }
}
.full-width-photo {
  width: 100%;
}
.full-width-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-caption {
  background: var(--ink);
  color: #9AA1A8;
  padding: 1rem 5%;
  text-align: left;
  font-size: 0.875rem;
}

.short-quote {
  text-align: center;
  padding: 4rem 5%;
  background: var(--ink);
  color: #FFFFFF;
}
.short-quote .story-quote {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

/* Ensure touch targets */
.nav-desktop a, .nav-mobile summary, .nav-mobile .dropdown a, .footer-right a, .trust-text a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-mobile summary {
  padding: 10px;
}
.nav-mobile .dropdown a {
  padding: 10px 0;
}
.ribbon a, .ribbon button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobile-call-bar a {
  display: block;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}
