/* ========== SEAMLESS EXTERIOR SOLUTIONS — Customer Portal Styles ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-dark: #1a1a2e;
  --navy-mid: #16213e;
  --navy-light: #0f3460;
  --red-dark: #7f1d1d;
  --red-mid: #991b1b;
  --red-accent: #b91c1c;
  --red-light: #dc2626;
  --bg: #f8f9fb;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: var(--red-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-brand-tagline {
  font-size: 0.7em;
  opacity: 0.6;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88em;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--red-dark), var(--red-accent)) !important;
  color: white !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(185,28,28,0.3);
}

.nav-cta:hover {
  box-shadow: 0 4px 14px rgba(185,28,28,0.4) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--red-accent), #ef4444) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: white;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 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' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.3em;
  opacity: 0.85;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1em;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 36px;
  font-size: 1.05em;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-dark), var(--red-accent));
  color: white;
  box-shadow: 0 4px 15px rgba(185,28,28,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(185,28,28,0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background: white;
  color: var(--red-mid);
  border: 2px solid var(--red-mid);
}

.btn-outline:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  color: var(--red-dark);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.92em;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2em;
  color: var(--navy-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05em;
  line-height: 1.6;
}

.section-label {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-mid);
  margin-bottom: 12px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15em;
  color: var(--navy-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  font-size: 0.92em;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: white;
  padding: 40px 24px;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--red-mid);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88em;
  margin-bottom: 6px;
  color: #444;
}

.form-group label .required {
  color: var(--red-accent);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(153,27,27,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  padding: 14px 16px;
}

.gallery-item .caption h4 {
  font-size: 0.92em;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.gallery-item .caption p {
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: white;
  font-size: 2em;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4em;
  color: var(--red-mid);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 0.95em;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.88em;
}

.testimonial-location {
  font-size: 0.8em;
  color: var(--text-muted);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: white;
  padding: 70px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.05em;
  opacity: 0.75;
  max-width: 550px;
  margin: 0 auto 30px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 50px 24px 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-brand .footer-logo {
  font-size: 1.2em;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85em;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.88em;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.85em;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8em;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* ===== SUCCESS / ERROR MESSAGES ===== */
.msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  display: none;
  margin-top: 16px;
}

.msg-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.msg-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy-dark);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9em;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: white;
  padding: 50px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2em;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.05em;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-toggle { display: block; }

  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 2.2em; }
  .hero .subtitle { font-size: 1.1em; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }

  .section { padding: 50px 20px; }
  .section-header h2 { font-size: 1.6em; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.5em; }
  .page-hero h1 { font-size: 1.7em; }
}
