:root {
  /* Ocean Theme Colors */
  --c-primary: #006994; /* Ocean Blue */
  --c-primary-light: #4FB3D9;
  --c-primary-dark: #004e6e;
  --c-secondary: #F5F5DC; /* Sandy White */
  --c-secondary-dark: #e8e8c8;
  --c-accent: #FF7F50; /* Coral */
  
  --c-bg: #f0f8ff; /* Alice Blue */
  --c-surface: rgba(255, 255, 255, 0.9);
  --c-surface-solid: #ffffff;
  --c-text: #0b1220;
  --c-muted: #5b6474;
  --c-border: rgba(0, 105, 148, 0.15);
  
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-shell: 24px 24px 4px 24px; /* Shell/Leaf shape */
  
  --shadow-sm: 0 4px 12px rgba(0, 105, 148, 0.08);
  --shadow-md: 0 12px 32px rgba(0, 105, 148, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 105, 148, 0.18);
  
  --container: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: "Varela Round", system-ui, -apple-system, sans-serif;
}

/* Import Font */
@font-face {
  font-family: 'Varela Round';
  src: url('../fonts/VarelaRound-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, #e0f2f7 100%);
  color: var(--c-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

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

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* UI Components */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 3; /* Ensure it sits on top of overlay and content */
}

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

.wave-divider .shape-fill {
  fill: var(--c-bg); /* Match body/section bg for seamless transition */
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.bubble--1 { width: 60px; height: 60px; top: 10%; left: 5%; animation-delay: 0s; }
.bubble--2 { width: 40px; height: 40px; top: 20%; right: 10%; animation-delay: 2s; }
.bubble--3 { width: 80px; height: 80px; bottom: 15%; left: 15%; animation-delay: 4s; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(0, 105, 148, 0.1);
  color: var(--c-primary-dark);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95); /* Increased opacity for better readability */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 105, 148, 0.1);
  height: 80px; /* Increased height */
  display: flex;
  align-items: center;
  padding: 0 5%; /* Use percentage for better responsiveness */
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 48px; /* Slightly larger logo */
  width: auto;
}

.header__nav {
  display: none;
  margin-left: auto;
  margin-right: 32px;
}

.header__nav-link {
  color: var(--c-primary-dark);
  font-weight: 700;
  margin-left: 40px; /* Increased spacing */
  position: relative;
  padding: 8px 0;
  font-size: 1rem;
  transition: color .3s var(--ease);
}

.header__nav-link:hover {
  color: var(--c-primary);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px; /* Thicker underline */
  background: var(--c-accent);
  transition: width .3s var(--ease);
  border-radius: 2px;
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__lang {
  font-weight: 700;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  padding: 8px 20px;
  border-radius: 50px; /* Pill shape */
  font-size: 0.9rem;
  transition: all .3s var(--ease);
  display: none; /* Hidden on mobile */
  white-space: nowrap;
}

.header__lang:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 105, 148, 0.2);
  transform: translateY(-1px);
}

.header__menu-btn {
  background: none;
  border: none;
  font-size: 1.8rem; /* Larger icon */
  color: var(--c-primary-dark);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) { /* Changed breakpoint to laptop size */
  .header__nav { display: block; }
  .header__lang { display: inline-block; }
  .header__menu-btn { display: none; }
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 300px;
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--c-muted);
  cursor: pointer;
  margin-bottom: 24px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer__link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

/* Hero */
.hero {
  position: relative;
  /* padding: 160px 0 120px; Removed padding as we use flex in overlay */
  overflow: hidden;
  min-height: 800px;
  /* display: flex;  Removed flex from here as children are absolute */
  /* align-items: center; */
  /* justify-content: center; */
  text-align: center;
  color: #fff;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 78, 110, 0.3) 0%, rgba(0, 105, 148, 0.6) 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 50px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 105, 148, 0.25);
}

.btn--secondary {
  background: #fff;
  color: var(--c-primary);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 105, 148, 0.35);
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
    padding: 120px 0 80px;
  }
}

/* Page Hero */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 78, 110, 0.4) 0%, rgba(0, 105, 148, 0.8) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-size: 3rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Section */
.section { padding: 64px 0; position: relative; background-color: var(--c-bg); }
.section--tight { padding: 48px 0; }
.section--alt { background-color: #e6f4fa; } /* Light blue bg for alt sections */

.section__title {
  font-size: 2rem;
  color: var(--c-primary-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--c-accent);
  margin-top: 8px;
  border-radius: 2px;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--c-muted);
  max-width: 700px;
  margin-bottom: 48px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card__image,
.card__media {
  height: 200px;
  overflow: hidden;
}

.card__image img,
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.card:hover .card__image img,
.card:hover .card__media img {
  transform: scale(1.05);
}

.card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--c-primary-dark);
}

.card__text {
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card__link {
  color: var(--c-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__link:hover { text-decoration: underline; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 105, 148, 0.15);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin-bottom: 24px;
}

.footer__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s;
}

.footer__link:hover { color: #fff; transform: translateX(4px); display: inline-block; }

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Forms */
.form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--c-surface-solid);
  padding: 40px;
  border-radius: var(--radius-shell);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.form__row {
  margin-bottom: 24px;
}

.form__row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all .2s var(--ease);
  background: #f9fcff;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 105, 148, 0.1);
}

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

/* Complaints Page */
.complaints-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .complaints-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  
  .complaints-grid .form {
    max-width: 100%; /* Override default max-width */
  }
}

.card--highlight {
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
  color: #fff;
  text-align: center;
  border: none;
  box-shadow: var(--shadow-md);
}

.card--highlight .section__title,
.card--highlight .section__lead {
  color: #fff;
}

.card--highlight .pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.phone-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

/* Table Styles */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: var(--c-text);
}

.table th,
.table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.6;
}

.table th {
  background: #f0f8ff; /* Lightest blue */
  color: var(--c-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: #fcfcfc;
}

/* Service Section inside Container */
.service-section {
  padding-top: 40px;
  border-top: 1px solid var(--c-border); /* Visual separator */
  margin-top: 40px;
}

.service-section .grid {
  margin-top: 24px;
}
