/* Galveston Home Center — Fixnow-style theme */
:root {
  --navy: #101935;
  --navy-dark: #0a1228;
  --royal: #2563eb;
  --royal-dark: #1d4ed8;
  --red: #ff4d4d;
  --red-hover: #e63939;
  --white: #ffffff;
  --gray-50: #f4f6f9;
  --gray-100: #e8ecf2;
  --gray-600: #5c6478;
  --text: #2d3348;
  --shadow: 0 8px 30px rgba(16, 25, 53, 0.12);
  --radius: 4px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--royal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--red);
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.top-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar a {
  color: inherit;
}

.top-bar a:hover {
  color: var(--red);
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 46px;
  width: auto;
  max-width: min(260px, 58vw);
}

.logo-footer {
  filter: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.header-cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--red);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn:hover {
  background: var(--red-hover);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy) !important;
}

.btn-royal {
  background: var(--royal);
}

.btn-royal:hover {
  background: var(--royal-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 45%, var(--navy) 100%);
  color: var(--white);
  padding: 3.5rem 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 420px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

.hero-lead {
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-image {
  text-align: center;
  align-self: flex-end;
}

.hero-image img {
  max-height: 400px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* Section utilities */
section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.section-title p {
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.section-title.light p {
  opacity: 0.85;
}

.bg-gray {
  background: var(--gray-50);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

/* Welcome / two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.welcome-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.35rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.welcome h2 {
  color: var(--navy);
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--royal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.feature-list h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.feature-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  margin: 0;
  padding: 1.1rem 1rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--navy);
  background: var(--white);
}

/* Split feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split-feature img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.split-content {
  padding: 3rem;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Projects filter */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tabs button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
}

.project-tabs button.active,
.project-tabs button:hover {
  background: var(--red);
  border-color: var(--red);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-item:hover img {
  transform: scale(1.06);
}

.project-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(16, 25, 53, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-weight: 600;
}

.project-item.hidden {
  display: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--royal);
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial-card h4 {
  margin: 0;
  color: var(--navy);
}

.testimonial-card span {
  font-size: 0.85rem;
  color: var(--royal);
}

/* Blog / news grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.news-body {
  padding: 1.25rem 1.5rem 1.5rem;
  position: relative;
}

.news-date {
  display: inline-block;
  background: var(--royal);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}

.news-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.news-card .read-more {
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA strip */
.cta-strip {
  background: var(--royal);
  color: var(--white);
  padding: 2.5rem 0;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.cta-strip img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.cta-strip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.cta-strip .cta-action {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.breadcrumb {
  opacity: 0.85;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Content prose */
.prose {
  max-width: 900px;
  margin: 0 auto;
}

.prose h2 {
  color: var(--navy);
  margin-top: 2rem;
}

.prose h3 {
  color: var(--royal-dark);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--red);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  color: var(--navy);
  margin-top: 0;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--royal);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-card .info {
  padding: 1.25rem;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.team-card span {
  color: var(--royal);
  font-size: 0.9rem;
}

/* Forms */
.form-section {
  background: var(--gray-50);
}

.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--royal);
  border-color: var(--royal);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--red);
}

.error-msg {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--royal);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* Footer info strip */
.footer-info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.footer-info-box {
  background: var(--royal-dark);
  color: var(--white);
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-info-box:nth-child(2) {
  background: var(--royal);
}

.footer-info-box:nth-child(3) {
  background: var(--navy);
}

.footer-info-box .fi-icon {
  font-size: 1.75rem;
  opacity: 0.9;
}

.footer-info-box h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.footer-info-box p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-about img.logo-footer {
  height: 44px;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--red);
}

.footer-col h4 {
  color: var(--white);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--red);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  background: var(--navy-dark);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1.25rem;
}

.footer-legal a:hover {
  color: var(--red);
}

.mascot {
  width: 80px;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

/* Stats counter strip */
.stats-strip {
  background: var(--royal);
  color: var(--white);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}

.stats-grid strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .two-col,
  .split-feature,
  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .news-grid,
  .pricing-grid,
  .team-grid,
  .footer-grid,
  .footer-info-strip {
    grid-template-columns: 1fr 1fr;
  }

  .split-feature {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-info-strip {
    margin-top: 0;
  }

  .cta-strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-strip img {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .two-col,
  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .news-grid,
  .pricing-grid,
  .team-grid,
  .stats-grid,
  .footer-grid,
  .footer-info-strip {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 0.5rem;
  }
}
