/* ============================================================
   Westminster Finish Atelier — Main Stylesheet
   Palette: Slate #3D4A5C | White #FFFFFF | Cobalt #1A4B8C
            Off-white #F7F8FA | Warm grey #8C95A0
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate:       #3D4A5C;
  --slate-dark:  #2A3445;
  --cobalt:      #1A4B8C;
  --cobalt-light:#2563C4;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --warm-grey:   #8C95A0;
  --border:      #DDE1E8;
  --text:        #1E2530;
  --text-light:  #5A6475;
  --gold:        #B8964E;
  --radius:      6px;
  --shadow-sm:   0 2px 8px rgba(61,74,92,.10);
  --shadow-md:   0 6px 24px rgba(61,74,92,.14);
  --shadow-lg:   0 16px 48px rgba(61,74,92,.18);
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.75rem;
}

/* ---------- Layout Utilities ---------- */
.container { width: min(1200px, 92vw); margin: 0 auto; }
.section-pad { padding: 96px 0; }
.section-pad--sm { padding: 64px 0; }
.text-center { text-align: center; }
.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; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--cobalt-light); outline-offset: 3px; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}
.btn-primary:hover { background: var(--cobalt-light); border-color: var(--cobalt-light); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-call {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}
.btn-call:hover { background: var(--cobalt-light); border-color: var(--cobalt-light); box-shadow: var(--shadow-sm); }

.btn-call-hero {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}
.btn-call-hero:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ---------- Sticky Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: .01em;
}
.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.header-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .04em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--cobalt);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--cobalt); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 2px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,40,65,.82) 0%, rgba(26,40,65,.55) 55%, rgba(26,40,65,.25) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}
.hero-content .section-label { color: rgba(255,255,255,.75); }
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}
.badge svg { flex-shrink: 0; }

/* ---------- Services ---------- */
#services { background: var(--off-white); }
.services-intro { max-width: 600px; margin: 0 auto 3.5rem; }
.services-intro p { color: var(--text-light); margin-top: 0.75rem; font-size: 1.05rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--cobalt);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #EBF0F8 0%, #D4E0F0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cobalt);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--slate-dark); }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

/* ---------- About ---------- */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--cobalt);
  border-radius: 10px;
  z-index: -1;
  opacity: .18;
}
.about-text .section-label { margin-bottom: 0.5rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; font-size: 1rem; }
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.pillar-icon {
  width: 36px; height: 36px;
  background: #EBF0F8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cobalt);
}
.pillar-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--slate-dark); }
.pillar-text span { font-size: 0.82rem; color: var(--text-light); }

/* ---------- Gallery ---------- */
#gallery { background: var(--slate-dark); }
#gallery .section-label { color: rgba(255,255,255,.6); }
#gallery h2 { color: var(--white); margin-bottom: 0.75rem; }
#gallery .gallery-sub { color: rgba(255,255,255,.65); margin-bottom: 3rem; font-size: 1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 1; }
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(26,40,65,.85) 0%, transparent 100%);
  color: rgba(255,255,255,.9);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption { opacity: 1; }
.gallery-placeholder-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
}

/* ---------- Testimonials ---------- */
#reviews { background: var(--off-white); }
.reviews-intro { max-width: 560px; margin: 0 auto 3rem; }
.reviews-intro p { color: var(--text-light); margin-top: 0.6rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--cobalt);
  opacity: .12;
}
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.star { color: #F5A623; font-size: 1rem; }
.review-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: 0.88rem; color: var(--slate-dark); }
.reviewer-location { font-size: 0.78rem; color: var(--warm-grey); }
.placeholder-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--warm-grey);
  font-style: italic;
}

/* ---------- Contact ---------- */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info .section-label { margin-bottom: 0.5rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; font-size: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.detail-icon {
  width: 40px; height: 40px;
  background: #EBF0F8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cobalt);
}
.detail-text { line-height: 1.4; }
.detail-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm-grey); }
.detail-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.detail-value a { color: var(--cobalt); transition: color var(--transition); }
.detail-value a:hover { color: var(--cobalt-light); text-decoration: underline; }
.detail-value a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
}
.map-embed iframe { display: block; width: 100%; height: 220px; border: none; }

/* Contact Form */
.contact-form-wrap { background: var(--off-white); border-radius: 12px; padding: 2.5rem; border: 1px solid var(--border); }
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--slate-dark); }
.contact-form-wrap > p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 0.4rem;
  letter-spacing: .03em;
}
.form-group label .req { color: var(--cobalt); margin-left: 2px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26,75,140,.12);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(26,75,140,.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  background: var(--cobalt);
  color: var(--white);
  border: 2px solid var(--cobalt);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--cobalt-light); border-color: var(--cobalt-light); box-shadow: var(--shadow-md); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:focus-visible { outline: 3px solid var(--cobalt-light); outline-offset: 3px; }

#form-success {
  display: none;
  background: #EAF6EE;
  border: 1.5px solid #4CAF7D;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}
#form-success h3 { color: #2E7D52; margin-bottom: 0.5rem; font-size: 1.3rem; }
#form-success p { color: #3A6B4A; font-size: 0.95rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
#footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .logo-tagline { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,.6); margin-top: 1rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:focus-visible { outline: 2px solid rgba(255,255,255,.5); outline-offset: 3px; border-radius: 2px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin-bottom: 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .header-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1.25rem; box-shadow: var(--shadow-md); }
  .header-nav.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0.75rem; }
  .nav-links a { font-size: 1rem; }
  .menu-toggle { display: flex; }
  #site-header { position: relative; }
  #site-header.sticky { position: sticky; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-item img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trust-badges { flex-direction: column; gap: 0.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
}
