@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --c-deep: #143642;
  --c-blue: #268C98;
  --c-light: #A8DADC;
  --c-foam: #F1FAFA;
  --c-sand: #F4EBE1;
  --c-sand-dark: #E2C9A1;
  --c-sun: #F4A261;
  --c-coral: #E76F51;
  --c-white: #FFFFFF;
  
  --font-heading: 'Philosopher', serif;
  --font-body: 'Josefin Sans', sans-serif;
  
  --radius-pebble: 40% 60% 70% 30% / 40% 50% 60% 50%;
  --radius-wave: 20px;
  
  --shadow-soft: 0 8px 24px rgba(38, 140, 152, 0.1);
  --shadow-hover: 0 16px 32px rgba(38, 140, 152, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--c-deep);
  background-color: var(--c-foam);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-deep);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-blue);
}

.logo img {
  height: 40px;
  animation: float 6s ease-in-out infinite;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-deep);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--c-sun);
  border-radius: 3px;
  transition: var(--transition);
}

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

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

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--c-blue);
  z-index: 1001;
}

/* Main Content */
main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--c-blue);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--c-deep);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--c-sun);
  color: var(--c-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  background: #f0954b;
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 5%;
  background-size: cover;
  background-position: center;
  color: var(--c-white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(38,140,152,0.8), rgba(20,54,66,0.6));
}

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

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--c-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Organic Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--c-white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-light));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
  margin: -2rem -2rem 1.5rem -2rem;
  height: 220px;
  overflow: hidden;
}

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

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

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--c-blue);
}

.card p {
  flex: 1;
  margin-bottom: 1.5rem;
  color: #4A6368;
}

/* Pebble Feature Image */
.pebble-img {
  border-radius: var(--radius-pebble);
  box-shadow: var(--shadow-soft);
  animation: float 8s ease-in-out infinite alternate;
}

/* Split Layouts for Storytelling */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

/* Wave Dividers */
.wave-divider {
  width: 100%;
  line-height: 0;
  position: relative;
  margin-top: -2px;
}
.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}
.wave-top {
  transform: rotate(180deg);
  margin-bottom: -2px;
}

/* Informational Callouts */
.callout {
  background: var(--c-sand);
  padding: 3rem;
  border-radius: 30px;
  position: relative;
  margin: 3rem 0;
  border-left: 6px solid var(--c-sun);
}

.callout h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.callout p {
  font-size: 1.1rem;
}

/* Content Blocks for pages */
.content-wrapper {
  background: var(--c-white);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 3rem;
}

.content-wrapper h2 {
  color: var(--c-blue);
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

.content-wrapper p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.content-wrapper ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--c-deep);
  color: var(--c-light);
  padding: 5rem 5% 2rem;
  position: relative;
}

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

.footer-col h3 {
  color: var(--c-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--c-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--c-sun);
  padding-left: 5px;
}

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

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--c-deep);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--c-light);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--c-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(38, 140, 152, 0.1);
}

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

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes wave-bob {
  0% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg) translateY(-5px); }
  100% { transform: rotate(-2deg); }
}

.animated-icon {
  animation: wave-bob 4s ease-in-out infinite;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--c-foam);
  color: var(--c-blue);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Popups */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: var(--c-white);
  padding: 3rem;
  border-radius: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: popup 0.3s ease-out;
}

@keyframes popup {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-popup {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--c-blue);
  transition: var(--transition);
}

.close-popup:hover {
  color: var(--c-coral);
}

.popup-content h3 {
  color: var(--c-blue);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .split-layout.reverse > * {
    direction: ltr;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
  }
  
  nav ul.show {
    transform: translateY(0);
    opacity: 1;
    z-index: 1000;
  }
  
  .hero {
    padding: 6rem 5% 4rem;
    min-height: 50vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .content-wrapper {
    padding: 2rem;
  }
  
  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn {
    width: 100%;
  }
}
