/* ============================================
   SW Painters & Decorators — style.css
   Navy + Gold + Cream | Clash Display + Satoshi
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: #2c2c2c;
  background: #f5f1eb;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Clash Display', 'Georgia', serif; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; max-width: 72ch; }
input, button, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(197,152,90,0.25); color: #1a2332; }
:focus-visible { outline: 2px solid #c5985a; outline-offset: 3px; border-radius: 4px; }

/* --- TOKENS --- */
:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-dark: #0f1520;
  --gold: #c5985a;
  --gold-light: #d4ad74;
  --gold-dark: #a67d3d;
  --cream: #f5f1eb;
  --cream-dark: #ebe5db;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #666;
  --text-light: #999;
  --border: #ddd5c9;

  --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);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26,35,50,0.06);
  --shadow-md: 0 4px 16px rgba(26,35,50,0.08);
  --shadow-lg: 0 12px 40px rgba(26,35,50,0.12);
  --transition: 200ms cubic-bezier(0.16,1,0.3,1);
}

/* --- UTILITIES --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.gold { color: var(--gold); }
.light { color: var(--cream); }
.section-label {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label.light { color: var(--gold-light); }
.section-desc { font-size: var(--text-base); color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-desc.light { color: rgba(245,241,235,0.7); }
.lead { font-size: var(--text-lg); font-weight: 500; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-cream { background: var(--cream-dark); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy p { color: rgba(245,241,235,0.8); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: var(--radius-sm);
  font-family: 'Satoshi', sans-serif; font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: all var(--transition);
}
.btn-gold {
  background: var(--gold); color: var(--white);
  box-shadow: 0 2px 8px rgba(197,152,90,0.3);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(197,152,90,0.4); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4); color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; }

/* --- PASSWORD GATE --- */
#password-gate {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  transition: opacity 0.5s, visibility 0.5s;
}
#password-gate.gate-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { text-align: center; padding: 2rem; max-width: 400px; width: 100%; }
.gate-logo { width: 80px; height: 80px; margin: 0 auto 1.5rem; object-fit: contain; }
.gate-inner h1 { font-size: var(--text-xl); color: var(--cream); margin-bottom: 0.5rem; }
.gate-inner p { color: rgba(245,241,235,0.6); font-size: var(--text-sm); margin-bottom: 1.5rem; }
#gate-form { display: flex; flex-direction: column; gap: 0.75rem; }
#gate-input {
  padding: 0.875rem 1rem; border: 2px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); color: var(--cream); font-size: var(--text-base);
  text-align: center; transition: border-color var(--transition);
}
#gate-input::placeholder { color: rgba(245,241,235,0.3); }
#gate-input:focus { border-color: var(--gold); outline: none; }
#gate-form button { padding: 0.875rem; background: var(--gold); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--text-sm); transition: background var(--transition); }
#gate-form button:hover { background: var(--gold-dark); }
.gate-error { color: #e74c3c; font-size: var(--text-sm); }

/* --- NAVBAR --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: all 0.3s;
}
#navbar.scrolled {
  background: rgba(26,35,50,0.97); backdrop-filter: blur(10px); padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--cream); font-size: var(--text-sm); font-weight: 500; transition: color var(--transition); position: relative; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--white) !important;
  padding: 0.5rem 1.25rem; border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--gold-dark) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
#hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(26,35,50,0.4) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-sub { font-size: var(--text-sm); color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.hero-title { font-size: var(--text-3xl); color: var(--cream); margin-bottom: 1.5rem; font-weight: 600; }
.hero-desc { font-size: var(--text-base); color: rgba(245,241,235,0.8); margin-bottom: 2rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--cream); opacity: 0.5; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- TRUST BAR --- */
#trust-bar { background: var(--navy); padding: 1.5rem 0; border-bottom: 1px solid rgba(197,152,90,0.2); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; justify-content: center; }
.trust-badge { width: 48px; height: 48px; object-fit: contain; }
.trust-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.trust-item strong { color: var(--cream); font-size: var(--text-sm); display: block; line-height: 1.3; }
.trust-item span { color: rgba(245,241,235,0.6); font-size: var(--text-xs); }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
  transform: translate(12px, 12px); z-index: -1;
  opacity: 0.3;
}
.about-image img { border-radius: var(--radius-lg); width: 100%; }
.about-content h2 { font-size: var(--text-2xl); margin-bottom: 1.5rem; color: var(--navy); }
.about-content p { margin-bottom: 1rem; color: var(--text); }
.about-content .lead { color: var(--navy); }
.about-content blockquote {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold); background: var(--cream-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-content blockquote p { font-style: italic; color: var(--navy); margin: 0; font-size: var(--text-base); }

/* --- BRANDS --- */
.brand-logos { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; }
.brand-logo { padding: 1rem 1.5rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.brand-logo img { height: 48px; width: auto; object-fit: contain; filter: grayscale(30%); transition: filter var(--transition); }
.brand-logo:hover img { filter: grayscale(0%); }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-icon { width: 48px; height: 48px; margin-bottom: 1.25rem; color: var(--gold); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: var(--text-lg); color: var(--navy); margin-bottom: 0.75rem; }
.service-card p { font-size: var(--text-sm); color: var(--text-muted); }

.services-full { margin-top: 3rem; padding: 2.5rem; background: var(--navy); border-radius: var(--radius-lg); }
.services-full h3 { color: var(--cream); font-size: var(--text-lg); margin-bottom: 1.5rem; text-align: center; }
.services-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem 1.5rem; }
.service-list-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(245,241,235,0.8); font-size: var(--text-sm);
}
.service-list-item svg { color: var(--gold); flex-shrink: 0; }

/* --- IMAGE BREAK --- */
.image-break { position: relative; height: 50vh; min-height: 300px; overflow: hidden; }
.image-break img { width: 100%; height: 100%; object-fit: cover; }
.image-break-overlay { position: absolute; inset: 0; background: rgba(26,35,50,0.7); }
.image-break-content {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
}
.image-break-content .lead { color: var(--cream); max-width: 700px; font-style: italic; font-family: 'Clash Display', serif; }

/* --- INSURER APPROVED --- */
.insurer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.insurer-content h2 { font-size: var(--text-2xl); margin-bottom: 1.5rem; }
.insurer-content p { margin-bottom: 1rem; }
.insurer-content .btn { margin-top: 1rem; }
.insurer-badge { text-align: center; }
.insurer-badge > img { width: 160px; margin: 0 auto 2rem; }
.insurer-stats { display: flex; gap: 2rem; justify-content: center; }
.stat { text-align: center; }
.stat-number { display: block; font-family: 'Clash Display', serif; font-size: var(--text-xl); color: var(--gold); font-weight: 600; }
.stat-label { font-size: var(--text-xs); color: rgba(245,241,235,0.6); line-height: 1.4; }

/* --- CLIENTS --- */
.client-logos { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; }
.client-logo { padding: 1.25rem 2rem; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.client-logo img { height: 56px; width: auto; object-fit: contain; filter: grayscale(40%); transition: filter var(--transition); }
.client-logo:hover img { filter: grayscale(0%); }

/* --- PROJECTS --- */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.project-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover img { transform: scale(1.08); }
.project-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem; background: linear-gradient(transparent, rgba(26,35,50,0.85));
  color: var(--cream); font-weight: 600; font-size: var(--text-sm);
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem;
  grid-auto-rows: 250px;
}
.gallery-item { border-radius: var(--radius-md); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-large { grid-column: span 2; }

/* --- TESTIMONIALS --- */
.testimonials-carousel { margin-top: 3rem; position: relative; overflow: hidden; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(197,152,90,0.2);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column;
}
.testimonial-stars { color: var(--gold); font-size: 1.125rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card p { font-size: var(--text-sm); color: rgba(245,241,235,0.8); flex: 1; line-height: 1.65; margin-bottom: 1.25rem; }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--gold); font-size: var(--text-sm); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(197,152,90,0.3); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.carousel-btn:hover { background: var(--gold); color: var(--navy); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(197,152,90,0.3); border: none;
  transition: all var(--transition); cursor: pointer;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

/* --- WHERE WE WORK --- */
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.where-content h2 { font-size: var(--text-2xl); color: var(--navy); margin-bottom: 1.5rem; }
.where-towns h3 { font-size: var(--text-lg); color: var(--navy); margin-bottom: 1.25rem; }
.towns-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.town-tag {
  padding: 0.5rem 1rem; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--navy);
  transition: all var(--transition);
}
.town-tag:hover { border-color: var(--gold); color: var(--gold); }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; margin-top: 3rem; align-items: start; }
.contact-card {
  background: var(--navy); color: var(--cream); padding: 2rem; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.contact-card-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-card-item strong { display: block; margin-bottom: 0.25rem; }
.contact-card-item a { color: var(--gold-light); transition: color var(--transition); display: block; }
.contact-card-item a:hover { color: var(--gold); }
.contact-card-item span { color: rgba(245,241,235,0.7); font-size: var(--text-sm); }

.contact-form-wrap { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-form-wrap h3 { font-size: var(--text-lg); color: var(--navy); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-full { margin-bottom: 1rem; }
.form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--cream); font-size: var(--text-sm);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); outline: none;
}
.form-group textarea { resize: vertical; }

/* --- FOOTER --- */
#footer { background: var(--navy-dark); color: rgba(245,241,235,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer-about p { font-size: var(--text-sm); line-height: 1.7; }
.footer-col h4 { color: var(--cream); font-size: var(--text-sm); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: var(--text-sm); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { font-size: var(--text-sm); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: rgba(245,241,235,0.4);
}
.footer-bottom a { color: var(--gold); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }

/* --- HIDDEN SITE --- */
.site-hidden { display: none; }

/* --- ANIMATIONS --- */
[data-anim] { opacity: 0; transform: translateY(30px); }
[data-anim].visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.25,0.8,0.25,1); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:last-child { grid-column: span 2; }
  .services-list { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-auto-rows: 200px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(26,35,50,0.98); padding: 1.5rem 2rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  
  .hero-title { font-size: clamp(2rem, 1rem + 4vw, 3.5rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-width: 500px; }
  
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child { grid-column: span 1; }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  
  .insurer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .insurer-badge { order: -1; }
  .insurer-badge > img { width: 120px; }
  
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-large { grid-column: span 2; }
  
  .testimonial-card { flex: 0 0 calc(100% - 0rem); }
  
  .where-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .trust-items { grid-template-columns: 1fr 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-large { grid-column: span 1; }
  .brand-logos, .client-logos { gap: 1.5rem; }
  .brand-logo, .client-logo { padding: 0.75rem 1rem; }
  .brand-logo img { height: 36px; }
  .client-logo img { height: 44px; }
}

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