/* =========================================================
   Paintseidon — Greek-temple themed painting site
   ========================================================= */

:root {
  --navy: #12213b;
  --navy-light: #1b3a63;
  --marble: #f5f0e6;
  --marble-dark: #e9e2d0;
  --gold: #c8a24a;          /* decorative only - too pale for text on light */
  --gold-bright: #d4af37;   /* text gold, dark backgrounds only */
  --gold-deep: #7a5f10;     /* text gold for light backgrounds (AA on marble/white) */
  --terracotta: #9c5314;
  --ink: #22262f;
  --max-width: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(18, 33, 59, 0.12);
  --font-head: "Cinzel", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--marble);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 10px;
}

.section {
  padding: 72px 0;
}

.section-sub {
  max-width: 640px;
  margin: -8px auto 40px;
  color: #4b5160;
}

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-bright);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 1rem;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: rgba(18, 33, 59, 0.55);
  border-color: var(--marble);
  color: var(--marble);
}
.btn-outline:hover { background: rgba(245,240,230,0.12); }
.btn-wide { width: 100%; text-align: center; font-size: 1.05rem; padding: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon { width: 30px; height: auto; filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg); }
/* logo.png is the full lockup: illustration (x209 y77, 664x404) above the
   wordmark, in a 1079x633 image. On the navy bars the artwork's own navy
   wordmark would disappear, so we crop to just the illustration and pair
   it with the Cinzel wordmark in marble. Set --mark-h to size it. */
.logo-mark {
  position: relative;
  display: block;
  flex: none;
  overflow: hidden;
  width: calc(var(--mark-h) * 664 / 404);
  height: var(--mark-h);
}
.logo-mark img {
  position: absolute;
  max-width: none;
  width: calc(var(--mark-h) * 1079 / 404);
  height: auto;
  left: calc(var(--mark-h) * -209 / 404);
  top: calc(var(--mark-h) * -77 / 404);
}
.brand .logo-mark { --mark-h: 44px; }
.footer-brand .logo-mark { --mark-h: 52px; }
.brand .brand-name, .footer-brand .brand-name {
  color: var(--marble);
  font-size: 1.2rem;
  margin: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--marble);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav .nav-cta {
  background: var(--gold-bright);
  color: var(--navy);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
}
.main-nav .nav-cta:hover { color: var(--navy); opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--marble);
  border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--marble);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  opacity: 0.9;
}
/* Scrim between the illustration and the copy. The temple is drawn in
   marble (#f5f0e6), so unscrimmed text over it fell to ~1.1:1. Weighted
   towards the bottom, where the pale stonework actually sits. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 33, 59, 0.30) 0%,
    rgba(18, 33, 59, 0.55) 35%,
    rgba(18, 33, 59, 0.80) 58%,
    rgba(18, 33, 59, 0.90) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 24px 72px;
  text-align: center;
  max-width: 900px;
}
.hero h1 { color: var(--marble); text-shadow: 0 2px 12px rgba(0,0,0,0.4); max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .eyebrow { color: var(--gold-bright); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--marble);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero-badges li {
  position: relative;
  padding: 6px 14px 6px 28px;
  background: rgba(18, 33, 59, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 13px; top: 50%;
  width: 8px; height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold-bright);
}

/* ---------- key divider ---------- */
.key-divider {
  height: 22px;
  background-image: url("greek-key.svg");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: 22px 22px;
  background-color: var(--navy);
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--marble-dark);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.service-icon { width: 40px; margin-bottom: 16px; }
.service-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #4b5160;
}
.service-list li { margin-bottom: 6px; }
.services-note {
  text-align: center;
  margin-top: 40px;
  color: #4b5160;
}
.services-note a { color: var(--terracotta); font-weight: 600; text-decoration: underline; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.gallery-item { margin: 0; }
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg,
    var(--marble-dark),
    var(--marble-dark) 12px,
    #ded4b8 12px,
    #ded4b8 24px
  );
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.gallery-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4b5160;
  text-align: center;
}

/* ---------- about ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 3fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.about-points li {
  padding-left: 22px;
  position: relative;
  font-weight: 600;
  color: var(--navy);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}
.about-figure { justify-self: center; }
.about-figure img { width: 100%; max-width: 260px; }

/* ---------- testimonials ---------- */
.testimonials { background: var(--navy-light); color: var(--marble); }
.testimonials h2, .testimonials .eyebrow { color: var(--marble); }
.testimonials .eyebrow { color: var(--gold-bright); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.testimonial {
  background: rgba(245,240,230,0.06);
  border-left: 3px solid var(--gold-bright);
  padding: 24px;
  margin: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p { margin: 0 0 14px; font-style: italic; }
.testimonial cite { font-style: normal; color: var(--gold-bright); font-size: 0.9rem; }

/* ---------- quote form ---------- */
.quote { background: #fff; }
.quote-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: flex-start;
}
.quote-intro p { color: #4b5160; }
.quote-intro a { color: var(--terracotta); font-weight: 600; text-decoration: underline; }
.quote-form {
  background: var(--marble);
  border: 1px solid var(--marble-dark);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-half > div { margin: 0; }
.quote-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--navy);
}
.quote-form label span { color: var(--terracotta); margin-left: 3px; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc6ac;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.82rem;
  color: #5c6370;
  margin: 4px 0 20px;
}
.form-status {
  margin-top: 14px;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-error { color: #b3261e; }
.form-status.is-success { color: #2e6b3e; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--marble-dark); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,240,230,0.15);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-icon-light { width: 26px; filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg); margin-bottom: 4px; }

.footer-brand p { color: #a9b0be; font-size: 0.9rem; }
.footer-col h3 {
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col p { margin: 0 0 8px; font-size: 0.92rem; }
.social-list { list-style: none; margin: 0; padding: 0; }
.social-list li { margin-bottom: 10px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--marble-dark);
  font-size: 0.92rem;
}
.social-list a:hover { color: var(--gold-bright); }
.social-list svg { flex: none; }
.footer-col a { text-decoration: none; color: var(--marble-dark); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  padding: 20px 24px 28px;
  font-size: 0.82rem;
  color: #939cad;
  text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-inner, .quote-inner { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .service-grid { grid-template-columns: 1fr; }
  .main-nav ul {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 3px solid var(--gold);
    display: none;
  }
  .main-nav ul.is-open { display: flex; }
  .main-nav li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(245,240,230,0.1); }
  .main-nav .nav-cta { display: inline-block; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .brand-logo { height: 44px; padding: 4px 8px; }
}

@media (max-width: 560px) {
  .form-row-half { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
