/* =========================================
   Sano Agency — Stylesheet
   ========================================= */

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

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c2c;
  background-color: #faf9f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Color Palette ---
   Background:  #faf9f7 (warm white)
   Text:        #2c2c2c (soft black)
   Muted text:  #6b6560 (warm gray)
   Accent:      #7a8c6e (sage green)
   Accent dark: #5e6d54 (darker sage)
   Light bg:    #f0eeeb (warm light gray)
   Border:      #e0ddd8 (warm border)
--- */

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6560;
}

p {
  color: #4a4540;
  max-width: 640px;
}

/* --- Layout --- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: #7a8c6e;
  color: #fff;
}

.btn-primary:hover {
  background-color: #5e6d54;
}

.btn-secondary {
  background-color: transparent;
  color: #7a8c6e;
  border: 1.5px solid #7a8c6e;
}

.btn-secondary:hover {
  background-color: #7a8c6e;
  color: #fff;
}

.btn-full {
  width: 100%;
}

.text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #7a8c6e;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #5e6d54;
}

/* =========================================
   Header & Navigation
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: #e0ddd8;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6b6560;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: #7a8c6e;
}

/* Hamburger */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2c2c2c;
  position: relative;
  transition: background-color 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #2c2c2c;
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Mobile nav open state */

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================
   Hero Section (Home)
   ========================================= */

.hero {
  padding: 10rem 0 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #6b6560;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* =========================================
   Page Hero (inner pages)
   ========================================= */

.page-hero {
  padding: 10rem 0 4rem;
}

.page-hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: #6b6560;
  max-width: 560px;
  margin-top: 1.25rem;
}

/* =========================================
   Services Overview (Home)
   ========================================= */

.services-overview {
  background-color: #f0eeeb;
}

.services-overview h2 {
  margin-bottom: 3rem;
}

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

.service-card {
  padding: 2.25rem;
  background-color: #faf9f7;
  border-radius: 6px;
  border: 1px solid #e0ddd8;
}

.service-card h3 {
  margin-bottom: 0.875rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================
   Niche Section (Home)
   ========================================= */

.niche-section {
  padding: 6rem 0;
}

.niche-content {
  max-width: 640px;
}

.niche-content h2 {
  margin-bottom: 1.25rem;
}

.niche-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* =========================================
   CTA Section
   ========================================= */

.cta-section {
  text-align: center;
  padding: 6rem 0;
  background-color: #f0eeeb;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: #6b6560;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* =========================================
   Service Detail (Services page)
   ========================================= */

.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid #e0ddd8;
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-content {
  max-width: 680px;
}

.service-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  color: #7a8c6e;
  margin-bottom: 1rem;
}

.service-detail h2 {
  margin-bottom: 1.25rem;
}

.service-lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a4540;
  margin-bottom: 2rem;
}

.service-includes {
  background-color: #f0eeeb;
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.service-includes h4 {
  margin-bottom: 0.875rem;
}

.service-includes ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.service-includes li {
  font-size: 0.9375rem;
  color: #4a4540;
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.service-detail-content > p:last-child {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #6b6560;
}

/* =========================================
   About Page
   ========================================= */

.about-philosophy {
  padding: 2rem 0 5rem;
}

.about-block {
  max-width: 640px;
}

.about-block h2 {
  margin-bottom: 1.5rem;
}

.about-block p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Founder */

.about-founder {
  background-color: #f0eeeb;
  padding: 5rem 0;
}

.founder-content {
  max-width: 640px;
}

.founder-content h2 {
  margin-bottom: 1.25rem;
}

.founder-lead {
  font-size: 1.25rem;
  font-style: italic;
  color: #4a4540;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.founder-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Values */

.about-values {
  padding: 5rem 0;
}

.about-values h2 {
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* =========================================
   Contact Page
   ========================================= */

.contact-section {
  padding: 2rem 0 6rem;
}

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

/* Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2c2c2c;
}

.form-group .optional {
  font-weight: 400;
  color: #6b6560;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e0ddd8;
  border-radius: 4px;
  background-color: #fff;
  color: #2c2c2c;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0aaa3;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #7a8c6e;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Form success state */

.form-success {
  text-align: center;
  padding: 3rem 0;
}

.form-success h3 {
  margin-bottom: 0.75rem;
  color: #7a8c6e;
}

.form-success p {
  color: #6b6560;
  max-width: 100%;
}

/* Contact info */

.contact-info {
  padding-top: 1rem;
}

.contact-info-block {
  margin-bottom: 2.5rem;
}

.contact-info-block h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-info-block p {
  color: #6b6560;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-email {
  font-size: 1.0625rem;
  color: #7a8c6e;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #5e6d54;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  background-color: #1a1a1a;
  color: #a09a94;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: #faf9f7;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #a09a94;
  line-height: 1.6;
}

.footer-nav ul {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #a09a94;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #faf9f7;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #6b6560;
}

/* =========================================
   Responsive — Tablet
   ========================================= */

@media (max-width: 900px) {
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    order: -1;
    padding-top: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav ul {
    gap: 1.5rem;
  }
}

/* =========================================
   Responsive — Mobile
   ========================================= */

@media (max-width: 640px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .page-hero {
    padding: 8rem 0 3rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background-color: #faf9f7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  /* Footer */
  .footer-nav ul {
    flex-direction: column;
    gap: 0.875rem;
  }

  /* Contact */
  .contact-info {
    order: initial;
  }

  /* Services */
  .service-detail {
    padding: 3rem 0;
  }

  .service-includes {
    padding: 1.5rem;
  }

  /* About */
  .about-philosophy {
    padding: 1rem 0 3.5rem;
  }

  .about-founder {
    padding: 3.5rem 0;
  }

  .about-values {
    padding: 3.5rem 0;
  }
}
