@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --deep-sea: #051923;
  --ocean-blue: #003554;
  --wave-crest: #006494;
  --surf: #0582CA;
  --foam: #00A6FB;
  --sand: #EAE0D5;
  --wet-sand: #C6AC8F;
  --coral: #E85D04;
  --white: #F8F9FA;
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --container-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --sea-glass-bg: rgba(255, 255, 255, 0.1);
  --sea-glass-border: rgba(255, 255, 255, 0.2);
  --sea-glass-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--deep-sea);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ocean-blue);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #334155; }
a { color: var(--surf); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--wave-crest); }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
@media (min-width: 768px) {
  .wave-divider svg { height: 120px; }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(5, 25, 35, 0.85);
  backdrop-filter: var(--sea-glass-blur);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  z-index: 1001;
}

.logo svg {
  width: 36px;
  height: 36px;
  fill: var(--foam);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  color: var(--sand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--foam);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--white);
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 3px;
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 400px;
    height: 100vh;
    background: var(--deep-sea);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  
  nav a {
    font-size: 1.25rem;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--surf);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(5, 130, 202, 0.3);
}

.btn-primary:hover {
  background: var(--wave-crest);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(5, 130, 202, 0.4);
  color: var(--white);
}

.btn-glass {
  background: var(--sea-glass-bg);
  backdrop-filter: var(--sea-glass-blur);
  border: 1px solid var(--sea-glass-border);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: var(--white);
}

/* Hero Sections */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--deep-sea), var(--ocean-blue));
  color: var(--white);
  padding-top: 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('phone_wave_reflection_coast.jpg') center/cover no-repeat;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--sand);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Specific Hero Variants for other pages */
.hero-page {
  min-height: 60vh;
}

/* Sea Glass Components */
.sea-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 53, 84, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sea-glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 53, 84, 0.12);
}

/* Coastal Grid Layout */
.coastal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-text {
  grid-column: span 12;
}

.grid-image {
  grid-column: span 12;
  position: relative;
}

@media (min-width: 992px) {
  .grid-text { grid-column: span 6; }
  .grid-image { grid-column: span 6; }
  .grid-text.right { grid-column: 7 / -1; }
  .grid-image.left { grid-column: 1 / 6; }
}

/* Image styling */
.organic-img {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  width: 100%;
  height: auto;
  object-fit: cover;
  animation: morph 8s ease-in-out infinite both alternate;
  box-shadow: 0 20px 40px rgba(0, 53, 84, 0.15);
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-img-wrapper {
  height: 220px;
  overflow: hidden;
}

.feature-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-img-wrapper img {
  transform: scale(1.05);
}

.feature-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--deep-sea);
  color: var(--sand);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--sand);
  opacity: 0.8;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--foam);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Section Styles */
.bg-sand { background-color: var(--sand); }
.bg-deep { background-color: var(--deep-sea); color: var(--white); }
.bg-deep h2, .bg-deep h3 { color: var(--white); }
.bg-deep p { color: var(--sand); }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--surf);
  box-shadow: 0 0 0 4px rgba(5, 130, 202, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Article List */
.article-list {
  display: grid;
  gap: 2rem;
}

.article-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .article-item {
    flex-direction: row;
    align-items: center;
  }
  .article-item img {
    width: 300px;
    height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
  }
}
