/* =============================================
   SAPPHIRE SHORES CO. — style.css
   Coastal Luxury Wallpaper Installation
   ============================================= */

:root {
  --color-primary:    #0f3460; /* Deep Sapphire */
  --color-accent:     #16a085; /* Coastal Teal */
  --color-accent-lt:  #1abc9c;
  --color-white:      #ffffff;
  --color-sand:       #f9f7f2;
  --color-sky:        #e3f2fd;
  --color-muted:      #7f8c8d;
  --color-border:     #d1d8e0;
  --font-heading:     'Playfair Display', serif;
  --font-body:        'Inter', sans-serif;
  --radius:           15px;
  --radius-lg:        25px;
  --transition:       0.3s ease-in-out;
  --shadow:           0 10px 30px rgba(15, 52, 96, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; text-align: center; }
p { margin-bottom: 16px; }

/* Sections */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header p { color: var(--color-muted); font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 52, 96, 0.2);
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  transition: all var(--transition);
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--color-primary);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--color-primary); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--color-accent); }
.nav-phone { font-weight: 700 !important; color: var(--color-accent) !important; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--color-primary); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--color-white);
  z-index: 1100;
  padding: 80px 40px;
  box-shadow: var(--shadow);
  transition: right 0.4s ease;
}
.mobile-nav.open { right: 0; }
.mobile-nav a { display: block; padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid var(--color-border); }

/* Hero — Coastal Luxury */
#hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  overflow: hidden;
  background: var(--color-sky);
  padding: 0;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-sky), transparent);
}
.hero-content-panel {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  padding: 60px;
  max-width: 600px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-left: 5%;
}
.hero-content-panel p { font-size: 1.2rem; margin-bottom: 30px; color: var(--color-muted); }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 25px; }
.hero-phone-link { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); display: block; }

.hero-badge {
  position: absolute;
  top: -30px; right: -30px;
  background: var(--color-accent);
  color: var(--color-white);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 0.8rem; font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 5px 15px rgba(22, 160, 133, 0.3);
  transform: rotate(15deg);
}

/* About — Coastal Editorial */
#about { background: var(--color-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-content h2 { text-align: left; }
.about-highlights { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.highlight-item { display: flex; align-items: center; gap: 15px; }
.highlight-dot { width: 10px; height: 10px; background: var(--color-accent); border-radius: 50%; }
.highlight-item p { margin-bottom: 0; font-weight: 600; color: var(--color-primary); }

/* Services — Rounded Coastal Cards */
#services { background: var(--color-sand); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-sky);
  transition: all var(--transition);
  text-align: center;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--color-accent); }
.service-card .icon-box {
  width: 60px; height: 60px;
  background: var(--color-sky);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: var(--color-muted); font-size: 0.95rem; }

/* Why Choose Us — Split Layout */
#why { padding: 0; overflow: hidden; }
.why-split { display: grid; grid-template-columns: 1fr 1fr; }
.why-img { background-image: url('images/gallery2.jpg'); background-size: cover; background-position: center; min-height: 500px; }
.why-content { padding: 100px 80px; background: var(--color-primary); color: var(--color-white); }
.why-content h2 { text-align: left; color: var(--color-white); margin-bottom: 40px; }
.benefit-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: var(--radius); margin-bottom: 20px; border-left: 4px solid var(--color-accent); }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-accent); }
.benefit-card p { margin-bottom: 0; font-size: 0.9rem; opacity: 0.8; }

/* Gallery — Masonry Coastal Style */
.gallery-masonry { columns: 3 300px; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Process — Horizontal Card-Based */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; position: relative; }
.process-card { background: var(--color-sand); padding: 40px; border-radius: var(--radius); text-align: center; position: relative; }
.process-num {
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

/* Reviews — Clean Coastal Cards */
#reviews { background: var(--color-sky); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card {
  background: var(--color-white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--color-primary);
}
.review-stars { color: #f1c40f; margin-bottom: 15px; font-size: 1.2rem; }
.review-card p { font-style: italic; color: var(--color-muted); }
.review-author { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.author-init { width: 40px; height: 40px; background: var(--color-primary); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Contact — Split Coastal */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.contact-info { background: var(--color-primary); color: var(--color-white); padding: 60px; border-radius: var(--radius); }
.contact-info h3 { color: var(--color-accent); margin-bottom: 30px; }
.contact-item { margin-bottom: 25px; }
.contact-item label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--color-accent); margin-bottom: 5px; }
.contact-item p { font-size: 1.1rem; }

.contact-form-card { background: var(--color-white); padding: 60px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--color-sky); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 10px;
  font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); }
#form-success { display: none; background: #e8f5e9; color: #2e7d32; padding: 20px; border-radius: 10px; text-align: center; margin-bottom: 20px; }

/* Map — Framed */
.map-framed { height: 500px; border-radius: var(--radius-lg); overflow: hidden; border: 15px solid var(--color-sand); position: relative; }
.map-framed iframe { width: 100%; height: 100%; border: none; }
.map-address {
  position: absolute; bottom: 30px; left: 30px;
  background: var(--color-white); padding: 30px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 300px;
}

/* Footer — Deep Sapphire Coastal */
footer { background: var(--color-primary); color: var(--color-white); padding: 80px 0 40px; position: relative; }
.footer-wave { position: absolute; top: -50px; left: 0; width: 100%; height: 50px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230f3460" fill-opacity="1" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'); background-size: cover; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--color-accent); margin-bottom: 25px; }
.footer-col a { display: block; margin-bottom: 12px; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 992px) {
  .hero-bg { width: 100%; opacity: 0.3; }
  .hero-content-panel { margin-left: 0; max-width: 100%; }
  .about-grid, .why-split, .contact-grid { grid-template-columns: 1fr; }
  .why-img { min-height: 300px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .contact-info, .contact-form-card { padding: 40px 25px; }
  .map-address { position: static; max-width: 100%; margin-top: 20px; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
