/* New Braunfels Concrete Contractor - Premium Construction Website Styles */
:root {
  --color-concrete: #6B7280;
  --color-charcoal: #1F2937;
  --color-dark: #111827;
  --color-navy: #1E3A5F;
  --color-navy-light: #2C5282;
  --color-white: #FFFFFF;
  --color-off-white: #F9FAFB;
  --color-light-gray: #F3F4F6;
  --color-medium-gray: #E5E7EB;
  --color-accent: #C2410C;
  --color-accent-hover: #9A3412;
  --color-success: #059669;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: #4B5563;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .logo { font-size: 0.95rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.75rem; }
}

.logo span {
  color: var(--color-accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--color-navy);
  background: var(--color-light-gray);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 0.5rem 0;
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.dropdown a:hover {
  background: var(--color-light-gray);
  color: var(--color-navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.phone-link {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75) 0%, rgba(30, 58, 95, 0.7) 100%),
              url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat;
  color: var(--color-white);
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  color: var(--color-charcoal);
}

.hero-form h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.hero-form > p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: #6B7280;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-medium-gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

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

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-off-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.trust-card {
  background: var(--color-white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--color-navy);
}

.trust-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.9rem;
  margin: 0;
  color: #6B7280;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--color-medium-gray);
}

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

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

.service-card-body {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card .btn {
  width: 100%;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.875rem;
  margin: 0;
}

/* Location cards */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.location-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--color-medium-gray);
  transition: var(--transition);
}

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

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

.location-card-body {
  padding: 1.25rem;
}

/* FAQ accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-medium-gray);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--color-navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: #4B5563;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 1.5rem;
  transition: var(--transition);
  color: var(--color-accent);
}

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

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #6B7280;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-medium-gray);
}

.breadcrumbs a {
  color: var(--color-navy);
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

/* Page hero small */
.page-hero {
  background: var(--color-navy);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Content */
.content-block {
  max-width: 800px;
}

.content-block h2 {
  margin-top: 2.5rem;
}

.content-block ul,
.content-block ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: #4B5563;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #D1D5DB;
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #9CA3AF;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #9CA3AF;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9CA3AF;
}

.footer-legal a {
  color: #9CA3AF;
  margin-left: 1.25rem;
}

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

/* Mobile sticky CTA */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  padding: 0.75rem 1rem;
  z-index: 999;
  gap: 0.75rem;
}

.mobile-sticky .btn {
  flex: 1;
  padding: 0.85rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-medium-gray);
  transition: var(--transition);
}

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

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--color-off-white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.map-container {
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-medium-gray);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-form {
    max-width: 480px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  .nav-item.open .dropdown {
    max-height: 500px;
    padding: 0.5rem 0;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta .phone-link {
    display: none;
  }
  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .btn-lg {
    width: 100%;
  }
}
