/* =============================================
   HILLSIDE PAINTING — Editorial Luxury Aesthetic
   Palette: Warm greige/parchment + black
   Matches original brand from hillside.studio.site
   ============================================= */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.5rem, 1rem + 8vw, 9rem);

  --space-1: 0.25rem;
  --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;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* --- LIGHT MODE: Warm Greige / Parchment --- */
:root,
[data-theme='light'] {
  --color-bg: #d6d0c4;
  --color-surface: #ddd8cd;
  --color-surface-2: #e3ded4;
  --color-surface-offset: #cec8bc;
  --color-surface-offset-2: #c5bfb3;
  --color-surface-dynamic: #bdb7ab;
  --color-divider: #b0a99c;
  --color-border: #a39c8f;

  --color-text: #1a1a18;
  --color-text-muted: #6b6760;
  --color-text-faint: #9a958d;
  --color-text-inverse: #d6d0c4;

  --color-primary: #1a1a18;
  --color-primary-hover: #333330;
  --color-primary-active: #0d0d0c;
  --color-primary-highlight: #c5bfb3;

  --color-accent: #1a1a18;

  --shadow-sm: 0 1px 2px oklch(0.15 0.01 80 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.15 0.01 80 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.15 0.01 80 / 0.14);
}



/* =============================================
   GLOBAL
   ============================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
}
.skip-link:focus { top: var(--space-2); }

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-10); }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}
.header:has(.nav-overlay.open),
.header.menu-open {
  background: var(--color-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  position: relative;
  z-index: 50;
}

/* Logo: black square icon */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-text);
  display: block;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}



/* Hamburger menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: flex-end;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: width 0.3s, transform 0.3s, opacity 0.3s;
}
.menu-toggle span:nth-child(1) { width: 28px; }
.menu-toggle span:nth-child(2) { width: 20px; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  width: 24px;
  height: 2.5px;
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  width: 24px;
  height: 2.5px;
  transform: translateY(-4px) rotate(-45deg);
}

/* Full-screen nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--color-bg);
  padding: var(--space-24) var(--space-10);
  flex-direction: column;
  gap: var(--space-6);
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.nav-overlay a:hover { color: var(--color-text-muted); }

/* =============================================
   HERO — Full-bleed editorial type
   ============================================= */
.hero {
  padding: var(--space-4) 0 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-transform: uppercase;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) {
  .hero-title { padding-inline: var(--space-10); }
}
.hero-rule {
  width: 100%;
  height: 4px;
  background: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: 0;
  border: none;
}
.hero-image {
  width: 100%;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: clamp(400px, 55vw, 700px);
  object-fit: cover;
}

/* =============================================
   INTRO — Two-column tagline
   ============================================= */
.intro {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: start;
}
.intro-label {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.intro-statement {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .intro-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* =============================================
   SECOND IMAGE — Full bleed
   ============================================= */
.full-image {
  width: 100%;
  overflow: hidden;
}
.full-image img {
  width: 100%;
  height: clamp(350px, 50vw, 650px);
  object-fit: cover;
}

/* =============================================
   SERVICES — Minimal text list with dividers
   ============================================= */
.services {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.services-inner {
  max-width: 800px;
  margin-left: auto;
}
@media (min-width: 768px) {
  .services-inner {
    margin-left: 40%;
  }
}
.services-header {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.2);
}
.service-list {
  list-style: none;
}
.service-item {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  padding: var(--space-5) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.15);
  transition: color 0.2s;
  cursor: default;
}
.service-item:hover {
  color: var(--color-text-muted);
}

/* =============================================
   ABOUT — Black background section
   ============================================= */
.about-dark {
  background: #1a1a18;
  color: #d6d0c4;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.about-dark-header {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from currentColor l c h / 0.2);
  opacity: 0.7;
}
.about-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  align-items: start;
}
.about-dark-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.about-dark-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-dark-statement {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.45;
  padding-top: var(--space-4);
}
@media (max-width: 767px) {
  .about-dark-grid { grid-template-columns: 1fr; }
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.gallery-header {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, oklch(0 0 0 / 0.55) 0%, transparent 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 1;
}
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 260px; }
  .gallery-item-label { opacity: 1; }
}

/* Featured Project Card */
.featured-project {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  margin-bottom: var(--space-8);
  background: var(--color-surface-offset);
}
.featured-project:hover .featured-project-image img {
  transform: scale(1.03);
}
.featured-project-image {
  overflow: hidden;
}
.featured-project-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-project-content {
  padding: var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-project-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.featured-project-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.featured-project-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 36ch;
}
.featured-project-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.featured-project:hover .featured-project-link {
  color: var(--color-text-muted);
}
@media (max-width: 767px) {
  .featured-project {
    grid-template-columns: 1fr;
  }
  .featured-project-image img {
    min-height: 240px;
    height: 240px;
  }
  .featured-project-content {
    padding: var(--space-6);
  }
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: var(--color-surface-offset);
}
.testimonials-header {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.2);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  font-style: normal;
}
.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (max-width: 767px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.contact-header {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.2);
}
.contact-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
}
.contact-info-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  flex-shrink: 0;
}
.contact-detail-text {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-detail-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Form */
.contact-form { }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  border-radius: 0;
  background: transparent;
  font-size: var(--text-base);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Pill button — matches old site CTA */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-pill:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
}
.btn-pill svg { width: 16px; height: 16px; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-text);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: 0;
  border: none;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}
.btn-solid:hover { opacity: 0.85; }

@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   FOOTER — Matches old site
   ============================================= */
.pre-footer {
  padding-block: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pre-footer-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.footer {
  border-top: 2px solid var(--color-text);
  padding-block: var(--space-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--space-8);
  align-items: start;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.footer-phone {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text); }

.footer-statement {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.footer-social a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-social a:hover { color: var(--color-text); }
.footer-social svg { width: 22px; height: 22px; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .pre-footer { flex-direction: column; gap: var(--space-6); }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
