/* =========================================================
   AEDIS NOVA — Service pages
   Premium visual system aligned with the new home page.
   All selectors are scoped under .service-page where possible.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap");

:root {
  --service-ink: #0b1f2a;
  --service-ink-soft: #52636b;
  --service-navy: #082b36;
  --service-navy-2: #0d3c47;
  --service-brand: #00e7c1;
  --service-brand-dark: #00b99a;
  --service-cream: #f4f2ec;
  --service-mist: #f2f8f7;
  --service-line: rgba(11, 31, 42, .12);
  --service-line-strong: rgba(11, 31, 42, .18);
  --service-white-line: rgba(255, 255, 255, .18);
  --service-radius-sm: 14px;
  --service-radius-md: 24px;
  --service-radius-lg: 36px;
  --service-shadow-sm: 0 14px 40px rgba(8, 43, 54, .08);
  --service-shadow-lg: 0 28px 80px rgba(8, 43, 54, .16);
}

.service-page {
  overflow-x: hidden;
  margin: 0;
  background: #fff;
  color: var(--service-ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.service-page *,
.service-page *::before,
.service-page *::after {
  box-sizing: border-box;
}

.service-page h1,
.service-page h2,
.service-page h3,
.service-page h4,
.service-page p {
  margin-top: 0;
}

.service-page a {
  text-decoration: none;
}

.service-page .container {
  position: relative;
}

/* ---------------------------------------------------------
   HERO — same visual language as the new home page
   --------------------------------------------------------- */
.service-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0 88px;
  color: #fff;
  background: var(--service-navy);
}

.service-hero-photo,
.service-hero-overlay,
.service-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-hero-photo {
  z-index: -4;
  background: url("images/hero-athens.jpg") center 46% / cover no-repeat;
  transform: scale(1.015);
}

.service-hero-overlay {
  z-index: -3;
  background:
    radial-gradient(circle at 76% 30%, rgba(0, 231, 193, .16), transparent 28%),
    linear-gradient(90deg, rgba(4, 27, 36, .97) 0%, rgba(4, 27, 36, .90) 47%, rgba(4, 27, 36, .67) 100%),
    linear-gradient(180deg, rgba(3, 22, 29, .15), rgba(3, 22, 29, .78));
}

.service-hero-grid {
  z-index: -2;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 54%, transparent 90%);
  mask-image: linear-gradient(to right, #000 0%, #000 54%, transparent 90%);
}

.service-hero-content {
  z-index: 2;
  width: 100%;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 231, 193, .34);
  border-radius: 999px;
  color: var(--service-brand);
  background: rgba(0, 231, 193, .08);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .10em;
  line-height: 1.35;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.service-kicker i {
  font-size: .95rem;
}

.service-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.05em;
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(0,0,0,.18);
}

.service-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255,255,255,.79);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.82;
}

/* Small page-specific shifts make the family feel designed, not duplicated. */
.service-page-boat-insurance .service-hero-photo { background-position: center 58%; }
.service-page-technical .service-hero-photo { background-position: center 42%; }
.service-page-life-balance .service-hero-overlay {
  background:
    radial-gradient(circle at 72% 25%, rgba(0, 231, 193, .20), transparent 30%),
    linear-gradient(90deg, rgba(4, 27, 36, .97), rgba(4, 27, 36, .86) 52%, rgba(4, 27, 36, .62));
}

/* ---------------------------------------------------------
   SECTIONS — breathing room and rhythm from the home page
   --------------------------------------------------------- */
.service-section {
  position: relative;
  padding: 96px 0;
  background: #fff;
}

.service-section.soft {
  background:
    radial-gradient(circle at 96% 5%, rgba(0, 231, 193, .07), transparent 22%),
    var(--service-mist);
}

.service-section-intro {
  padding-top: 104px;
}

.service-section-final {
  padding-top: 84px;
  padding-bottom: 104px;
}

.service-section-white {
  background: #fff;
}

.service-section .row.mb-5 {
  margin-bottom: 3.2rem !important;
}

.service-title {
  margin-bottom: 16px;
  color: var(--service-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.service-title.h3,
.service-card .service-title.h3 {
  font-size: 1.42rem;
  line-height: 1.32;
  letter-spacing: -.025em;
}

.service-lead {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--service-ink-soft);
  font-size: 1.03rem;
  line-height: 1.86;
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.service-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 31px;
  border: 1px solid var(--service-line);
  border-radius: var(--service-radius-md);
  background: #fff;
  box-shadow: var(--service-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -96px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: rgba(0, 231, 193, .08);
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 185, 154, .34);
  box-shadow: var(--service-shadow-lg);
}

.service-card:hover::after {
  transform: scale(1.22);
  opacity: .9;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  margin-bottom: 26px;
  border-radius: 18px;
  color: var(--service-navy);
  background: rgba(0, 231, 193, .14);
  font-size: 1.48rem;
  box-shadow: inset 0 0 0 1px rgba(0, 185, 154, .08);
}

.service-card h2,
.service-card h3,
.service-card h4 {
  margin-bottom: 13px;
  color: var(--service-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.025em;
}

.service-card h3 {
  font-size: 1.34rem;
}

.service-card p,
.service-card li {
  color: var(--service-ink-soft);
  font-size: .91rem;
  line-height: 1.78;
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-feature-card {
  min-height: 285px;
}

.service-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 31px;
  width: 78px;
  height: 3px;
  border-radius: 99px;
  background: var(--service-brand);
}

.service-package-card {
  min-height: 100%;
  padding-top: 28px;
}

.service-package-card:hover .service-pill {
  color: #053f35;
  background: rgba(0, 231, 193, .20);
}

.service-list-card {
  background: linear-gradient(180deg, #fff, #fbfdfc);
}

.service-link-card {
  min-height: 390px;
}

.service-link-card .service-btn {
  align-self: flex-start;
  margin-top: auto !important;
}

/* ---------------------------------------------------------
   PILLS / LISTS / NOTES
   --------------------------------------------------------- */
.service-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 185, 154, .18);
  border-radius: 999px;
  color: #08705f;
  background: rgba(0, 231, 193, .10);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.service-list {
  display: grid;
  gap: 11px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  margin: 0;
  padding-left: 29px;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  top: .05em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #07594b;
  background: rgba(0, 231, 193, .14);
  font-size: .68rem;
  font-weight: 900;
}

.service-note {
  position: relative;
  overflow: hidden;
  padding: 24px 27px 24px 30px;
  border: 1px solid rgba(0, 185, 154, .16);
  border-left: 4px solid var(--service-brand-dark);
  border-radius: 18px;
  color: #40555d;
  background: #f7fcfb;
  box-shadow: 0 12px 30px rgba(8, 43, 54, .05);
  font-size: .91rem;
  line-height: 1.8;
}

.service-note::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -65px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(0, 231, 193, .08);
}

/* ---------------------------------------------------------
   CTA — close to the dark premium sections on home
   --------------------------------------------------------- */
.service-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 48px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 231, 193, .18), transparent 30%),
    linear-gradient(145deg, var(--service-navy), var(--service-navy-2));
  box-shadow: 0 26px 70px rgba(8, 43, 54, .22);
}

.service-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .10;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 70px 70px;
}

.service-cta h2 {
  margin-bottom: 13px !important;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.service-cta p {
  max-width: 760px;
  color: rgba(255,255,255,.72);
  font-size: .96rem;
  line-height: 1.75;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 21px;
  border: 0;
  border-radius: 999px;
  color: #04251f !important;
  background: var(--service-brand);
  box-shadow: 0 14px 32px rgba(0, 231, 193, .20);
  font-family: "Manrope", Arial, sans-serif;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.service-btn:hover,
.service-btn:focus {
  transform: translateY(-2px);
  color: #fff !important;
  background: var(--service-brand-dark);
  box-shadow: 0 18px 38px rgba(0, 185, 154, .22);
}

/* ---------------------------------------------------------
   TABLES (kept compatible for any service page that uses one)
   --------------------------------------------------------- */
.service-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--service-line);
  border-radius: var(--service-radius-md);
  background: #fff;
  box-shadow: var(--service-shadow-sm);
}

.service-table th,
.service-table td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--service-line);
}

.service-table th {
  color: var(--service-ink);
  background: var(--service-mist);
  font-weight: 800;
}

.service-table td {
  color: var(--service-ink-soft);
}

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

/* Existing navbar/dropdown active states, aligned to the new brand. */
.service-page .actions a.active {
  box-shadow: inset 0 -2px 0 var(--service-brand) !important;
}

.service-page .dropdown-item.active,
.service-page .dropdown-item:active {
  color: #063d34;
  background-color: rgba(0, 231, 193, .18) !important;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
  .service-hero {
    min-height: 455px;
    padding: 96px 0 72px;
  }

  .service-hero h1 {
    max-width: 800px;
  }

  .service-section {
    padding: 78px 0;
  }

  .service-link-card {
    min-height: 340px;
  }

  .service-cta {
    padding: 38px;
  }
}

@media (max-width: 767.98px) {
  .service-hero {
    min-height: 430px;
    padding: 82px 0 62px;
  }

  .service-hero-photo {
    background-position: 64% center !important;
  }

  .service-hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 27, 36, .96), rgba(4, 27, 36, .84)),
      linear-gradient(180deg, rgba(3, 22, 29, .2), rgba(3, 22, 29, .75));
  }

  .service-hero-grid {
    opacity: .08;
    background-size: 68px 68px;
  }

  .service-kicker {
    margin-bottom: 18px;
    font-size: .68rem;
  }

  .service-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: 1;
  }

  .service-hero p {
    font-size: .96rem;
    line-height: 1.72;
  }

  .service-section,
  .service-section-intro,
  .service-section-final {
    padding: 64px 0;
  }

  .service-section .row.mb-5 {
    margin-bottom: 2.2rem !important;
  }

  .service-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .service-card {
    padding: 25px;
    border-radius: 21px;
  }

  .service-feature-card {
    min-height: 0;
  }

  .service-feature-card::before {
    left: 25px;
  }

  .service-link-card {
    min-height: 0;
  }

  .service-cta {
    padding: 30px 25px;
    border-radius: 24px;
  }

  .service-cta .text-lg-end {
    text-align: left !important;
  }

  .service-btn {
    width: 100%;
  }

  .service-link-card .service-btn {
    align-self: stretch;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td {
    display: block;
    width: 100%;
  }

  .service-table th {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page *,
  .service-page *::before,
  .service-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
