@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary-blue: #0E3B66;
  /* Deep ocean blue */
  --accent-blue: #0077C8;
  /* Vibrant Hawaii ocean */
  --warm-sand: #F7F5F0;
  /* Light warm background */
  --text-dark: #2A2F35;
  /* Soft black for text */
  --text-light: #5A6470;
  /* Lighter text for paragraphs */
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  /* Gives a more established, trustworthy feel */
  color: var(--primary-blue);
  line-height: 1.2;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.btn-cta,
.btn-primary {
  background-color: var(--accent-blue);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  /* Less rounded, more traditional contractor feel */
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
}

.btn-cta:hover,
.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  /* Offset for fixed nav */
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--warm-sand);
  /* Subtle background image of a Honolulu condo, kept very faded so text is readable */
  background-image: linear-gradient(rgba(247, 245, 240, 0.9), rgba(247, 245, 240, 0.95)), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 5%;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Services */
.services {
  background-color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.service-card {
  padding: 2.5rem;
  background-color: var(--warm-sand);
  border-radius: 8px;
  border-top: 4px solid var(--accent-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--primary-blue);
}

/* Features (Locals section) */
.features {
  background-color: var(--primary-blue);
  color: var(--white);
}

.features .section-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-item.reverse {
  direction: rtl;
}

.feature-item.reverse>* {
  direction: ltr;
  /* Reset text direction to normal */
}

.feature-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.feature-text h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Testimonials / Reviews */
.testimonials {
  background-color: var(--warm-sand);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

.review-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.review-author {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background-color: var(--warm-sand);
  padding: 4rem;
  border-radius: 12px;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: -1rem;
  /* Visual trick to bring label closer to input */
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {

  .feature-item,
  .feature-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* In a real app, add a hamburger menu here */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}