/* ============================================================
   MIAMI SHORES PLUMBING — Shared Design System
   Designed and Developed by Novelio Technologies © 2026
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #0D3B6E;
  --primary-dark: #082d54;
  --primary-light: #1a5296;
  --secondary: #C9A84C;
  --secondary-dark: #a8883a;
  --secondary-light: #dfc070;
  --background: #F8FAFF;
  --surface: #FFFFFF;
  --text: #1A2332;
  --muted: #64748B;
  --border: #DBEAFE;
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.2);
  --shadow-sm: 0 2px 8px rgba(13,59,110,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(13,59,110,0.12), 0 4px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 48px rgba(13,59,110,0.18), 0 8px 16px rgba(0,0,0,0.1);
  --shadow-gold: 0 8px 24px rgba(201,168,76,0.35), 0 2px 8px rgba(201,168,76,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 250ms cubic-bezier(0.4,0,0.2,1);
  --z-topbar: 100;
  --z-nav: 90;
  --z-overlay: 80;
  --z-sticky: 70;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--background); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.15; color: var(--text); }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.75rem; display: block; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: var(--primary); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 560px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin: 0 auto; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-xl); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,0.45); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---- Top Bar ---- */
#top-bar { background: var(--primary-dark); color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 500; z-index: var(--z-topbar); position: relative; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; max-width: 1200px; margin: 0 auto; gap: 12px; }
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-left a { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 6px; transition: color var(--transition); }
.top-bar-left a:hover { color: var(--secondary); }
.top-bar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.social-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: all var(--transition); cursor: pointer; }
.social-icon:hover { background: var(--secondary); transform: translateY(-1px); }
.social-icon svg { width: 14px; height: 14px; fill: #fff; }

/* ---- Navbar ---- */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); transition: background var(--transition), box-shadow var(--transition), top var(--transition); background: transparent; }
#navbar.scrolled { background: rgba(8,45,84,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
#navbar.solid { background: rgba(8,45,84,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 0.875rem; font-weight: 600; font-family: 'Montserrat', sans-serif; padding: 8px 14px; border-radius: var(--radius-sm); transition: all var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px; background: var(--secondary); transform: scaleX(0); transition: transform var(--transition); border-radius: 2px; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #fff; }
.nav-cta { background: var(--secondary) !important; color: #fff !important; padding: 10px 20px !important; border-radius: var(--radius-xl) !important; box-shadow: var(--shadow-gold); font-size: 0.82rem !important; }
.nav-cta:hover { background: var(--secondary-dark) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: background var(--transition); }
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
#mobile-menu { position: fixed; inset: 0; background: rgba(8,45,84,0.98); backdrop-filter: blur(16px); z-index: var(--z-overlay); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu a { color: rgba(255,255,255,0.88); font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; padding: 14px 32px; border-radius: var(--radius-md); transition: all var(--transition); opacity: 0; transform: translateY(20px); }
#mobile-menu.open a { opacity: 1; transform: translateY(0); }
#mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open a:nth-child(6) { transition-delay: 0.30s; }
#mobile-menu a:hover { color: var(--secondary); background: rgba(255,255,255,0.06); }
.mobile-cta-btn { margin-top: 12px; background: var(--secondary) !important; color: #fff !important; border-radius: var(--radius-xl) !important; font-size: 1rem !important; }

/* ---- Page Hero (inner pages) ---- */
.page-hero { padding: 160px 0 80px; background: linear-gradient(145deg, #061e3a 0%, var(--primary) 50%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; font-weight: 900; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto 32px; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { color: var(--secondary); }

/* ---- Glassmorphism Card ---- */
.glass-card { background: rgba(255,255,255,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(13,59,110,0.1); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.glass-card:hover { box-shadow: var(--shadow-md); }

/* ---- CTA Banner (reusable) ---- */
.cta-banner { background: linear-gradient(100deg,var(--primary-dark) 0%,var(--primary) 50%,var(--secondary-dark) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.15) 0%, transparent 60%); }
.cta-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 480px; }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Footer ---- */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-heading { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 800; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary); display: inline-block; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--secondary); font-size: 1rem; }
.footer-links a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 48px; padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: var(--secondary); font-weight: 600; }

/* ---- Mobile Sticky Buttons ---- */
#mobile-sticky-btns { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); gap: 12px; z-index: var(--z-sticky); }
@media(max-width:768px) { #mobile-sticky-btns { display: flex; } footer { padding-bottom: 80px; } }
.sticky-btn { display: flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-xl); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: all var(--transition); position: relative; }
.sticky-btn::before { content: ''; position: absolute; inset: -4px; border-radius: calc(var(--radius-xl) + 4px); border: 2px solid currentColor; opacity: 0.3; animation: pulse-ring 2s ease-out infinite; }
.sticky-call { background: #0D3B6E; }
.sticky-call:hover { background: #082d54; transform: translateY(-2px); }
.sticky-whatsapp { background: #25D366; }
.sticky-whatsapp:hover { background: #1db954; transform: translateY(-2px); }

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
  .stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; }
  .stagger-3 { transition-delay: 0.3s; } .stagger-4 { transition-delay: 0.4s; }
  .stagger-5 { transition-delay: 0.5s; } .stagger-6 { transition-delay: 0.6s; }
  @keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
  @keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-16px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .float-1 { animation: float 6s ease-in-out infinite; }
  .float-2 { animation: float 8s ease-in-out infinite 1s; }
}

/* ---- Responsive ---- */
@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .top-bar-left span:last-child { display: none; }
  .section { padding: 56px 0; }
}
@media(max-width:480px) {
  .top-bar-left { gap: 10px; }
  .top-bar-left .top-bar-divider:first-of-type { display: none; }
}
