/* ---------------------------------------------------------------
   Ofelia's Cleaning Services — design tokens
--------------------------------------------------------------- */
:root {
  --ink-black: #0a0a0a;
  --rich-black: #0b0b0b;
  --deep-gold: #b8912e;
  --warm-gold: #d4af6a;
  --soft-gold: #c9a961;
  --ivory-cream: #f7f1e1;
  --warm-white: #ede6d3;

  --gold-line: linear-gradient(90deg, var(--deep-gold), var(--warm-gold) 50%, var(--deep-gold));

  --font-headline: 'Cinzel', serif;
  --font-accent: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  --tracking-label: 0.28em;
  --max-width: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  background: var(--ivory-cream);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-black);
  color: var(--warm-gold);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--warm-gold);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------------------------------------------------------------
   Type helpers
--------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--warm-gold);
  margin: 0 0 1.1rem;
}
.eyebrow .dot { color: var(--soft-gold); margin: 0 0.35em; }
.eyebrow-dark { color: var(--deep-gold); }
/* On light (Ivory Cream) backgrounds, gold fails text-contrast at small sizes —
   render eyebrows in ink with a gold underline dash instead of gold type. */
.services .eyebrow,
.contact .eyebrow {
  color: var(--ink-black);
  position: relative;
  padding-bottom: 0.85rem;
}
.services .eyebrow::after,
.contact .eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.75rem;
  height: 2px;
  background: var(--deep-gold);
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  margin: 0 0 3rem;
  color: var(--ink-black);
}
.section-title-light { color: var(--warm-white); }

/* ---------------------------------------------------------------
   Reveal-on-scroll
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-gold {
  background: var(--deep-gold);
  color: var(--ink-black);
  border-color: var(--deep-gold);
}
.btn-gold:hover { background: var(--warm-gold); border-color: var(--warm-gold); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border-color: rgba(212, 175, 106, 0.55);
}
.btn-outline:hover { border-color: var(--warm-gold); color: var(--warm-gold); }
.icon-phone { width: 15px; height: 15px; fill: currentColor; }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(184, 145, 46, 0.35);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-mark img { height: 58px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-white);
}
.main-nav a { transition: color 0.3s var(--ease); }
.main-nav a:hover { color: var(--warm-gold); }
.nav-phone {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(212, 175, 106, 0.55);
  border-radius: 2px;
  color: var(--warm-gold) !important;
}
.nav-phone:hover { background: var(--deep-gold); color: var(--ink-black) !important; border-color: var(--deep-gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--warm-white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-black) url("assets/hero/hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
  padding: 7rem 1.75rem 6rem;
}
.hero-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(184, 145, 46, 0.14), transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(184, 145, 46, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 6, 0.82) 0%, rgba(6, 6, 6, 0.74) 50%, rgba(6, 6, 6, 0.86) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
  text-align: center;
}
.hero .eyebrow { color: var(--warm-gold); justify-content: center; }
.hero-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.18;
  margin: 0 0 1.6rem;
  background: linear-gradient(100deg, var(--soft-gold) 0%, var(--warm-gold) 35%, #f2e2b8 50%, var(--warm-gold) 65%, var(--deep-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-white);
  max-width: 560px;
  margin: 0 auto 2.75rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.roofline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  z-index: 1;
}
.roofline svg { width: 100%; height: 100%; display: block; }
.roofline-outer { stroke: var(--deep-gold); stroke-width: 1.4; opacity: 0.9; }
.roofline-inner { stroke: var(--warm-gold); stroke-width: 0.6; opacity: 0.55; }

/* ---------------------------------------------------------------
   Services
--------------------------------------------------------------- */
.services {
  background: var(--ivory-cream);
  padding: 7rem 0 7.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}
.card {
  position: relative;
  padding: 2.75rem 2.25rem;
  border: 1px solid rgba(184, 145, 46, 0.4);
  outline: 1px solid rgba(184, 145, 46, 0.4);
  outline-offset: -6px;
  background: var(--warm-white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(10, 10, 10, 0.35);
}
.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 1.5rem;
}
.card-icon path, .card-icon line {
  stroke: var(--deep-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.9rem;
  color: var(--ink-black);
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  color: #2b2b2b;
}

.card--photo {
  overflow: hidden;
  background: var(--ink-black);
}
.card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.32) 0%, rgba(6, 6, 6, 0.58) 45%, rgba(6, 6, 6, 0.9) 100%);
}
.card-content {
  position: relative;
  z-index: 2;
}
.card--photo .card-icon path, .card--photo .card-icon line { stroke: var(--warm-gold); }
.card--photo h3 { color: var(--warm-white); }
.card--photo p { color: rgba(237, 230, 211, 0.9); }

.corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 1.4px solid var(--deep-gold);
}
.corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* ---------------------------------------------------------------
   Gallery
--------------------------------------------------------------- */
.gallery {
  background: var(--rich-black);
  padding: 7rem 0 7.5rem;
}
.gallery .eyebrow,
.gallery .section-title { color: var(--warm-gold); }
.gallery .eyebrow {
  color: var(--warm-gold);
  padding-bottom: 0;
}
.gallery .eyebrow::after { display: none; }
.gallery .section-title { color: var(--warm-white); }

.gallery-grid {
  display: flex;
  align-items: stretch;
  height: 480px;
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  display: block;
  transition: flex 0.7s var(--ease);
}
.gallery-item:hover,
.gallery-item:focus-visible {
  flex: 3.2 1 0%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.6s var(--ease);
  filter: saturate(0.7) brightness(0.82);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.05) brightness(1);
}
.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
}
.gallery-zoom svg {
  width: 34px; height: 34px;
  color: var(--warm-gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 6, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(212, 175, 106, 0.4);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: 1px solid rgba(212, 175, 106, 0.45);
  color: var(--warm-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--deep-gold);
  color: var(--ink-black);
}
.lightbox-close {
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---------------------------------------------------------------
   The Standard
--------------------------------------------------------------- */
.standard {
  background: var(--rich-black);
  padding: 7.5rem 0;
}
.standard .eyebrow { text-align: center; }
.standard .section-title { text-align: center; }

.standard-list {
  margin: 0;
  border-top: 1px solid rgba(212, 175, 106, 0.25);
}
.standard-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2.5rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.25);
  align-items: baseline;
}
.standard-row dt {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--warm-gold);
}
.standard-row dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--warm-white);
  opacity: 0.85;
}

/* ---------------------------------------------------------------
   Motto
--------------------------------------------------------------- */
.motto {
  position: relative;
  background: var(--ink-black);
  padding: 9rem 1.75rem 6rem;
  text-align: center;
  overflow: hidden;
}
.motto-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  color: var(--warm-white);
  margin: 0 0 1.25rem;
}
.motto-attribution {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--soft-gold);
  margin: 0;
}
.roofline-motto { top: 0; bottom: auto; height: 60px; transform: scaleY(-1); }

/* ---------------------------------------------------------------
   Text Us
--------------------------------------------------------------- */
.text-us {
  background: var(--ivory-cream);
  padding: 0 1.75rem 5rem;
  text-align: center;
}
.text-us-line {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-black);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.4rem;
}
.text-us-phone {
  display: inline-block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-black);
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.text-us-phone:hover { color: var(--deep-gold); }

/* ---------------------------------------------------------------
   Contact
--------------------------------------------------------------- */
.contact {
  background: var(--ivory-cream);
  padding: 7rem 0 7.5rem;
}
.contact-intro {
  margin: -1.75rem 0 3rem;
  font-size: 1rem;
  color: #2b2b2b;
  max-width: 480px;
}

.contact-frame {
  position: relative;
  border: 1px solid var(--deep-gold);
  outline: 1px solid var(--deep-gold);
  outline-offset: -7px;
  background: var(--warm-white);
  padding: 3rem;
}
.contact-frame .corner { width: 20px; height: 20px; }
.contact-frame .corner-tl, .contact-frame .corner-tr { top: 14px; }
.contact-frame .corner-bl, .contact-frame .corner-br { bottom: 14px; }
.contact-frame .corner-tl, .contact-frame .corner-bl { left: 14px; }
.contact-frame .corner-tr, .contact-frame .corner-br { right: 14px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
}

.field { margin-bottom: 1.5rem; }
.field-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-black);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(10, 10, 10, 0.3);
  padding: 0.6rem 0.1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink-black);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--deep-gold);
}
.btn-form { margin-top: 0.5rem; width: 100%; justify-content: center; }
.form-note {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--ink-black);
  min-height: 1.2em;
}

.contact-direct {
  border-left: 1px solid rgba(184, 145, 46, 0.4);
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-direct-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-black);
  margin: 0 0 0.6rem;
}
.contact-direct-item {
  font-size: 1.02rem;
  color: #2b2b2b;
  transition: color 0.3s var(--ease);
}
a.contact-direct-item:hover { color: var(--deep-gold); }
.contact-direct-area { color: #6b6b6b; font-size: 0.9rem; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--ink-black);
  padding: 3rem 1.75rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { height: 46px; width: auto; opacity: 0.9; }
.footer-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-white);
}
.footer-nav a:hover { color: var(--warm-gold); }
.footer-fine {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(237, 230, 211, 0.55);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 106, 0.15);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { display: grid; height: auto; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item { flex: none; }
  .gallery-item img { filter: saturate(0.94) brightness(1); }
  .gallery-item-tall { grid-row: span 2; }
  .standard-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-direct { border-left: none; padding-left: 0; border-top: 1px solid rgba(184,145,46,0.4); padding-top: 2rem; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 73px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem 1.75rem 2.5rem;
    border-bottom: 1px solid rgba(184, 145, 46, 0.35);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .contact-frame { padding: 2rem 1.5rem; }
  .footer-inner { justify-content: center; text-align: center; }

  .lightbox { padding: 5rem 1.25rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
