/* Modern Coastal Color Palette */
:root {
  --primary: #2e8bc0;
  --secondary: #b1d4e0;
  --accent: #f7f6f2;
  --dark: #145374;
  --light: #eaf6fb;
  --shadow: rgba(44, 62, 80, 0.08);
  --footer-bg: #0a2239;
  --footer-text: #f4f8fb;
  --footer-link: #7fd6e7;
}

body {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: linear-gradient(120deg, var(--light) 0%, var(--secondary) 100%);
  color: var(--dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  background: var(--background, #f4f8fb);
}

header {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0 1.2rem 0;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  padding-left: 2rem;
}

.site-logo {
  width: 40px;
  height: 40px;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.site-title-section {
  width: 100vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2.5rem 0 0.5rem 0;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.site-title-section h1 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--dark);
  text-shadow: 0 2px 8px var(--shadow);
  margin: 4.2rem 0 1.2rem 0;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  margin-top: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}

nav a.active, nav a:hover {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.hero {
  background: linear-gradient(120deg, var(--primary) 60%, var(--secondary) 100%);
  color: #fff;
  padding: 5rem 2rem 3rem 2rem;
  text-align: center;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 4px 16px var(--shadow);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--dark);
  color: #fff;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}

.btn:hover {
  background: var(--primary);
  transform: translateY(-2px) scale(1.03);
}

section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.features-hero {
  background: none;
  color: var(--primary);
  padding: 2.5rem 2rem 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.features-hero h2 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-shadow: 0 2px 8px var(--shadow);
}

.features-hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  color: var(--primary);
}

.features-intro {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.2rem auto;
  color: var(--primary);
  font-size: 1.1rem;
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.features-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1rem;
}

.badge {
  background: var(--primary);
  color: #fff;
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 1px 6px var(--shadow);
  letter-spacing: 0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: rgba(255,255,255,0.95);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--secondary);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px var(--shadow);
}

.feature-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
}

.feature-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-hero {
  background: none;
  color: var(--primary);
  padding: 2.5rem 2rem 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-hero h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-shadow: 0 2px 8px var(--shadow);
}

.contact-hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  color: var(--primary);
}

.contact-flex {
  display: flex;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info-panel {
  flex: 1 1 320px;
  background: rgba(255,255,255,0.97);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 2rem;
}

.contact-info-panel h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info-panel a {
  color: var(--primary);
  text-decoration: none;
}

.contact-form {
  flex: 2 1 400px;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 2.2rem 2rem 2rem 2rem;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  min-width: 260px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  margin-left: 0.1rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--secondary);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--light);
  box-sizing: border-box;
  margin-left: 0;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.map-embed {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 12px var(--shadow);
  margin-top: 1.2rem;
}

.why-choose {
  background: linear-gradient(120deg, var(--secondary) 60%, var(--accent) 100%);
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 2.5rem 1.5rem;
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
  text-align: center;
}

.why-choose h2 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 2rem;
  font-weight: 800;
}

.why-choose ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-choose li {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.7em;
  color: var(--dark);
}

.why-choose li:before {
  content: "\2713";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

footer {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 -2px 8px var(--shadow);
  margin-top: 3rem;
}

.footer-content {
  background: var(--footer-bg, #0a2239);
  color: var(--footer-text, #f4f8fb);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1rem 1.2rem 1rem;
  border-top: 2px solid #e3f6ff;
  box-shadow: 0 -2px 16px var(--shadow, rgba(0,0,0,0.08));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--footer-link, #7fd6e7);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary, #1e90ff);
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 1rem;
  color: var(--footer-text, #f4f8fb);
}

.footer-contact a {
  color: var(--footer-link, #7fd6e7);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--primary, #1e90ff);
  text-decoration: underline;
}

/* Header hero background image for contact page */
.header-hero-bg {
  position: relative;
  width: 100vw;
  min-width: 0;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 0;
  margin-bottom: -120px; /* Pull up behind h1/box */
}
.header-hero-img {
  width: 100%;
  max-width: 900px;
  min-width: 320px;
  height: 260px;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  filter: brightness(0.95) saturate(1.1) drop-shadow(0 8px 32px rgba(0,0,0,0.13));
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
@media (max-width: 700px) {
  .header-hero-bg, .header-hero-img {
    height: 140px;
    min-width: 0;
    max-width: 100vw;
    border-radius: 0 0 1.2rem 1.2rem;
  }
}

/* Contact page header hero background image */
.header-hero-bg-contact {
  width: 100vw;
  min-width: 0;
  height: 220px;
  background: url('../images/house-hero.jpg') center center/cover no-repeat;
  position: relative;
  z-index: 1;
  margin-bottom: -110px; /* Pull up behind the h1 and intro box */
  opacity: 0.85;
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
@media (max-width: 700px) {
  .header-hero-bg-contact {
    height: 110px;
    border-radius: 0 0 1.2rem 1.2rem;
    margin-bottom: -55px;
  }
}

/* Homepage header hero background image */
.header-hero-bg-home {
  width: 100vw;
  min-width: 0;
  height: 420px;
  background: url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=1200&q=80') center 60%/cover no-repeat;
  position: relative;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.88;
  border-radius: 0 0 3rem 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  pointer-events: none;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-title-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 0;
  padding-top: 0;
  background: none;
}
.site-title-section h1 {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 2px 8px var(--shadow);
}
@media (max-width: 700px) {
  .header-hero-bg-home, .site-title-section {
    height: 180px;
  }
  .site-title-section {
    padding-top: 0;
  }
}

.site-title-section, .features-intro {
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
  }
  .site-logo {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .header-content h1 {
    font-size: 1.5rem;
  }
  .site-title-section {
    margin: 1.2rem 0 0.5rem 0;
    width: 100vw;
  }
  .site-title-section h1 {
    font-size: 1.3rem;
  }
  .features-intro {
    font-size: 1rem;
    padding: 0.8rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .features-badges {
    gap: 0.4rem;
  }
  .features-hero h2 {
    font-size: 1.3rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 1.2rem 0.5rem;
  }
  .footer-content {
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
  }
  .footer-links {
    gap: 0.8rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-info-panel, .contact-form {
    max-width: 100%;
    min-width: 0;
  }
}

.blog-thumb {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  aspect-ratio: 1/1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 2px 12px var(--shadow, rgba(0,0,0,0.10)) !important;
  margin-bottom: 1.1rem !important;
  margin-top: 0.5rem !important;
  background: #e3f6ff !important;
  border: 3px solid #fff !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  outline: 2px solid red !important; /* DEBUG: Remove this after confirming sizing */
}
@media (max-width: 600px) {
  .blog-thumb {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }
}

/* Blog thumbnail sizing is strictly enforced above. If you see wrong size, check for parent container or inline style conflicts. */

/* Decorative SVG wave fade effect for top sections */
.wave-fade {
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
