/* Surf Coast Underpinning - Main Stylesheet */
:root {
  --primary: #4A90C2;
  --primary-dark: #2E6A9A;
  --primary-light: #6BA8D4;
  --dark: #2C3E50;
  --grey: #5A6A7A;
  --light-grey: #F4F7FA;
  --white: #FFFFFF;
  --accent: #E8F4FC;
  --success: #27AE60;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

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

.phone-btn {
  background: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}

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

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

.btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* Sections */
.section {
  padding: 70px 20px;
}

.section-alt {
  background: var(--light-grey);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #eee;
  aspect-ratio: 4/3;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.about-content p {
  color: var(--grey);
  margin-bottom: 14px;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.contact-info h3 {
  margin-bottom: 18px;
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-item strong {
  display: block;
  margin-bottom: 2px;
}

.contact-form {
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D0D7DE;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,194,0.15);
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* Footer */
.footer {
  background: var(--dark);
  color: #B0BEC5;
  padding: 48px 20px 24px;
}

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

.footer h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.footer p,
.footer a {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer a:hover {
  color: var(--primary-light);
}

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

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 22px;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .about-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1.05rem;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
