/* =============================================
   WRIGHT PLUMBING & HEATING — styles.css
   Premium Minimalist Style
   ============================================= */

/* --- VARIABLES --- */
:root {
  --navy: #1e2b5e;
  --navy-dark: #141d42;
  --navy-light: #2e3f80;
  --gold: #c8a96e;
  --gold-light: #dbbf8a;
  --white: #ffffff;
  --off-white: #f8f8f6;
  --grey-100: #f2f2ef;
  --grey-200: #e5e5e0;
  --grey-400: #9a9a90;
  --grey-700: #4a4a44;
  --text: #1a1a1a;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  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; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
  display: none;
  animation: slideUp 0.4s ease;
}
.cookie-banner.visible { display: block; }
@keyframes slideUp { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.cookie-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; font-size: 0.875rem; color: rgba(255,255,255,0.85); min-width: 200px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-light); }
.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* --- LAYOUT --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,43,94,0.25); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--navy);
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* --- SECTION TYPOGRAPHY --- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-700);
  max-width: 560px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* --- NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-color: var(--grey-200); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo { flex-shrink: 0; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-700);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--navy);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-link.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--navy-light); color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--navy);
  top: -100px; right: -200px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -100px; left: -100px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--navy-dark);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--navy-light); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--grey-700);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--grey-700);
  padding: 8px 14px;
  background: var(--grey-100);
  border-radius: 100px;
  border: 1px solid var(--grey-200);
}
.badge-star { color: #f5a623; letter-spacing: -1px; }
.hero-image-wrap { flex: 1; max-width: 480px; }
.hero-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* --- SERVICES --- */
.services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.92rem; color: var(--grey-700); line-height: 1.65; }

/* --- ABOUT --- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { position: relative; min-height: 480px; }
.about-img-main {
  width: 75%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 3/4;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.14);
  aspect-ratio: 4/3;
  border: 5px solid var(--white);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-title { margin-bottom: 20px; }
.about-body { color: var(--grey-700); margin-bottom: 16px; font-size: 0.97rem; line-height: 1.75; }
.about-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li { font-size: 0.9rem; color: var(--navy-dark); font-weight: 500; }

/* --- OUR WORK --- */
.work { background: var(--navy-dark); }
.work .section-eyebrow { color: var(--gold); }
.work .section-title { color: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover img { transform: scale(1.05); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,29,66,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay p {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- TESTIMONIALS --- */
.testimonials { background: var(--off-white); }
.star-row { font-size: 1.3rem; color: #f5a623; margin-bottom: 8px; }
.star-row span { font-size: 0.9rem; color: var(--grey-700); vertical-align: middle; margin-left: 8px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.testimonial-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.testimonial-author { font-size: 0.85rem; font-weight: 500; color: var(--navy); }

/* --- CONTACT --- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info .section-title { margin-bottom: 16px; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--grey-700); }
.contact-details svg { color: var(--navy); flex-shrink: 0; }
.contact-details a:hover { color: var(--navy); text-decoration: underline; }
.contact-form-wrap {
  background: var(--off-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: var(--navy-dark); text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,43,94,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-status { font-size: 0.9rem; padding: 12px 0; text-align: center; }
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* --- GOOGLE MAP --- */
.map-section { position: relative; }
.map-label {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.map-link { display: block; position: relative; cursor: pointer; }
.map-link iframe { display: block; pointer-events: none; }
.map-cta-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background var(--transition), transform var(--transition);
}
.map-link:hover .map-cta-overlay { background: var(--navy-light); transform: translateY(-2px); }

/* --- FOOTER --- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); object-fit: contain; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 280px; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav li a, .footer-contact li a, .footer-contact li span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-nav li a:hover, .footer-contact li a:hover { color: var(--white); }
.footer-btn { margin-top: 24px; background: var(--gold); color: var(--navy-dark); }
.footer-btn:hover { background: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: auto; padding-top: 100px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-image-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-images { min-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
  }
  .nav-links.open { transform: translateX(0); pointer-events: all; }
  .nav-link { font-size: 1.2rem; }
  .nav-toggle { display: flex; }
  .nav-link.nav-cta { font-size: 1rem; }
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2.8rem; }
  .about-img-accent { width: 50%; bottom: -16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .hero-badges { flex-direction: column; align-items: flex-start; }
  .contact-form-wrap { padding: 24px 20px; }
}
