/* ════════════════════════════════════════════════
   P SERVICE LLC — STYLESHEET
   style.css
════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --navy:        #0f1f3d;
  --navy-light:  #1a3260;
  --navy-dark:   #0a1628;
  --amber:       #f59e0b;
  --amber-dark:  #d97706;
  --green:       #0c8037;
  --green-light: #22c55e;
  --bg:          #f4f6f9;
  --white:       #ffffff;
  --text:        #1a1a2e;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.15);
  --transition:  0.26s ease;
  --font:        'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
img     { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a     { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
section    { scroll-margin-top: 68px; }

/* ════════════════════════════════════════════════
   SVG ICON SYSTEM
════════════════════════════════════════════════ */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width:  20px;
  height: 20px;
  stroke: currentColor;
  fill:   none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm  { width: 16px; height: 16px; }
.icon-md  { width: 24px; height: 24px; }
.icon-lg  { width: 28px; height: 28px; }
.icon-xl  { width: 36px; height: 36px; }
.icon-filled { fill: currentColor; stroke: none; }

/* ════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--amber);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.section-sub  { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.accent       { color: var(--amber); }

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  min-height: 48px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn-amber         { background: var(--amber); color: var(--navy); }
.btn-amber:hover   { background: var(--amber-dark); }
.btn-green         { background: var(--green); color: #fff; }
.btn-green:hover   { background: #15803d; }
.btn-navy          { background: var(--navy); color: #fff; }
.btn-navy:hover    { background: var(--navy-light); }
.btn-ghost         { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-ghost:hover   { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline       { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ════════════════════════════════════════════════
   STICKY HEADER
════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
}
.brand            { font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: 0.02em; }
.brand span       { color: var(--amber); }
.brand small      { display: block; font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; }
.header-nav       { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a     { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 600; transition: color var(--transition); }
.header-nav a:hover { color: var(--amber); }
.header-actions   { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.header-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; min-height: 40px; }

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, #0d2647 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/after-bathroom-marble-vanity.webp') center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 50%, rgba(245,158,11,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-content h1 em { font-style: normal; color: var(--amber); }
.hero-desc  { font-size: 1.1rem; opacity: 0.85; line-height: 1.8; margin-bottom: 1.5rem; max-width: 560px; }
.hero-creds {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  align-items: center;
}
.hero-cred {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}
.hero-cred .icon { color: var(--amber); width: 16px; height: 16px; }
.hero-divider { color: rgba(255,255,255,0.2); font-size: 1.2rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-ctas .btn { font-size: .75rem; padding: 1rem 2rem; }

/* ════════════════════════════════════════════════
   TRUST BAR
════════════════════════════════════════════════ */
#trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
}
.trust-item .icon { color: var(--amber); width: 18px; height: 18px; }

/* ════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════ */
#services { padding: 5.5rem 0; background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
  gap: 1.1rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  color: var(--navy);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .svc-icon-wrap { background: var(--navy); color: #fff; }
.svc-name { font-weight: 800; font-size: 0.94rem; color: var(--navy); margin-bottom: 0.4rem; }
.svc-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* ════════════════════════════════════════════════
   BEFORE & AFTER
════════════════════════════════════════════════ */
#before-after {
  padding: 5.5rem 0;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
}
#before-after .section-title { color: #fff; }
#before-after .section-sub   { color: rgba(255,255,255,0.55); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1400px;
  gap: 2.25rem;
}
.ba-label {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ba-label span { color: var(--amber); }

/* Comparison slider */
.comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 16px 56px rgba(0,0,0,0.45);
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
}
.comparison img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.comparison .img-after { clip-path: inset(0 50% 0 0); }
.comp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 52px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.comp-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 16px rgba(0,0,0,0.4);
}
.comp-btn {
  position: relative;
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.comp-btn .icon { width: 20px; height: 20px; }
.comp-tag {
  position: absolute;
  top: 0.75rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}
.comp-tag-b { left: 0.75rem; background: rgba(0,0,0,0.6); color: #fff; }
.comp-tag-a { right: 0.75rem; background: var(--amber); color: var(--navy); }
.comp-hint {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.9);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  animation: fadeHint 3.5s ease forwards;
}
@keyframes fadeHint { 0%, 65% { opacity: 1; } 100% { opacity: 0; } }

/* ════════════════════════════════════════════════
   GALLERY
════════════════════════════════════════════════ */
#gallery { padding: 5.5rem 0; background: var(--bg); }
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.gtab {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 42px;
  cursor: pointer;
}
.gtab.active, .gtab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.gtab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.gitem {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  background: var(--border);
}
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gitem:hover img { transform: scale(1.07); }
.gitem-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,16,34,0.9) 0%, transparent 100%);
  color: #fff;
  padding: 2rem 0.9rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
  letter-spacing: 0.01em;
}
.gitem:hover .gitem-cap { opacity: 1; }
.gitem:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightbox.open { display: flex; }
#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
#lb-close {
  position: fixed;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
#lb-close:hover { background: rgba(255,255,255,0.25); }
#lb-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.88);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════ */
#contact { padding: 5.5rem 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: 2rem; font-weight: 900; color: var(--navy); margin-bottom: 0.5rem; }
.contact-info > p { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 0.85rem; }
.clink {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.clink:hover  { border-color: var(--navy); box-shadow: var(--shadow); transform: translateX(5px); }
.clink:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.clink-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-phone .clink-icon { background: #fef3c7; color: #b45309; }
.cl-sms   .clink-icon { background: #dcfce7; color: #15803d; }
.cl-email .clink-icon { background: #e0f2fe; color: #0369a1; }
.cl-map   .clink-icon { background: #fce7f3; color: #9d174d; }
.clink-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

/* Booking form */
.booking-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border: 1.5px solid var(--border);
}
.booking-card h3 { font-size: 1.4rem; font-weight: 900; color: var(--navy); margin-bottom: 0.35rem; }
.booking-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1rem; }
.fg label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,31,61,0.1);
}
.fg textarea { resize: vertical; min-height: 90px; }
#form-success {
  display: none;
  background: #dcfce7;
  border: 1.5px solid #86efac;
  color: #166534;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
#form-success.visible { display: flex; }

/* ════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════ */
#cta-banner {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--amber) 0%, #f97316 100%);
}
#cta-banner h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
#cta-banner p   { color: rgba(10,20,40,0.68); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-btns       { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 2;
}
footer strong { color: #fff; }
footer a      { color: var(--amber); text-decoration: underline; }
.footer-nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.footer-nav a { color: rgba(255,255,255,0.75); text-decoration: underline; transition: color var(--transition); }
.footer-nav a:hover { color: var(--amber); }

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

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ba-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header-nav   { display: none; }
}
@media (max-width: 600px) {
  .hero-ctas .btn     { flex: 1; min-width: 130px; }
  .hero-creds         { gap: 0.65rem; }
  .hero-divider       { display: none; }
  .trust-inner        { gap: 1.25rem; }
  .header-inner       { padding: 0.55rem 1rem; }
  .header-actions .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
