/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #1f8a8a;
  --color-primary-dark: #145c5c;
  --color-primary-light: #e6f6f5;
  --color-accent: #ff7a59;
  --color-accent-dark: #e8623f;
  --color-text: #16292b;
  --color-text-light: #5c7373;
  --color-bg: #ffffff;
  --color-bg-alt: #f4fbfa;
  --color-border: #e1eeed;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(15, 61, 61, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 61, 61, 0.14);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

p { color: var(--color-text-light); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-heading { max-width: 740px; margin: 0 auto 50px; text-align: center; }
.section-heading h2 { font-size: 2rem; margin-bottom: 14px; }
.section-heading.light .eyebrow { color: #bff0ea; }
.section-heading.light h2 { color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 25px rgba(255, 122, 89, 0.35); }
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary-dark); transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }

/* ===== Icon badge ===== */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 18px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15,61,61,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }

.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--color-primary-dark); }

.main-nav .nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--color-primary-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%); padding: 90px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 20px; }
.hero .lead { font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 50px 40px;
  text-align: center;
  max-width: 320px;
  color: var(--color-primary);
}
.hero-logo { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.hero-card-title { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); margin-top: 18px; }
.hero-card-sub { font-size: 0.9rem; margin-top: 8px; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 80px 0 70px;
  color: #fff;
  text-align: center;
}
/* Page hero with a photo showing through the teal gradient.
   Add a per-page modifier below that sets --hero-photo (path is relative to this stylesheet). */
.page-hero--photo {
  background:
    radial-gradient(ellipse 60% 85% at 50% 50%, rgba(12, 70, 70, 0.40), rgba(12, 70, 70, 0) 100%),
    linear-gradient(135deg, rgba(20, 92, 92, 0.72), rgba(31, 138, 138, 0.60)),
    var(--hero-photo) var(--hero-pos, center 45%) / cover no-repeat,
    var(--color-primary-dark);
}
.page-hero--about { --hero-photo: url('../img/hero-about.jpg'); }
.page-hero--services { --hero-photo: url('../img/hero-services.jpg'); --hero-pos: 60% 55%; }
.page-hero--post { --hero-photo: url('../img/hero-posts.jpg'); --hero-pos: 50% 70%; }
.page-hero--contact { --hero-photo: url('../img/hero-contact.jpg'); --hero-pos: 55% 18%; }
.page-hero--photo h1,
.page-hero--photo .lead { text-shadow: 0 2px 14px rgba(8, 48, 48, 0.35); }
.page-hero .eyebrow { color: #bff0ea; }
.page-hero h1 { color: #fff; font-size: 2.3rem; margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  background: var(--color-bg-alt);
  padding: 34px 28px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; }

/* ===== About preview / detail ===== */
.about-preview { background: var(--color-bg-alt); }
.about-inner, .about-detail-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-photo.large { max-width: 380px; margin: 0 auto; }
.about-text h2 { font-size: 1.9rem; margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; }
.about-text .btn { margin-top: 10px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; margin-bottom: 16px; }
.card-link { font-weight: 600; color: var(--color-primary); font-size: 0.9rem; }

.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 46px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon-badge { width: 64px; height: 64px; margin-bottom: 0; }
.service-detail h2 { font-size: 1.5rem; margin-bottom: 12px; }
.service-detail p { margin-bottom: 12px; }

/* ===== Testimonials ===== */
.testimonials {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}
.testimonial-slide p {
  font-size: 1.25rem;
  color: #fff;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial-slide cite {
  font-weight: 600;
  font-style: normal;
  color: #bff0ea;
}
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.testimonial-dots button.active { background: #fff; transform: scale(1.2); }

/* ===== CTA ===== */
.cta {
  background: var(--color-bg-alt);
  text-align: center;
}
.cta-inner h2 { font-size: 1.9rem; margin-bottom: 14px; }
.cta-inner p { max-width: 500px; margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta .btn-outline-light { border-color: var(--color-primary); color: var(--color-primary); }
.cta .btn-outline-light:hover { background: var(--color-primary); color: #fff; }

/* ===== Values (about page) ===== */
.values { background: #fff; }

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 34px;
}
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon-badge { margin-bottom: 0; flex-shrink: 0; width: 46px; height: 46px; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 0.95rem; overflow-wrap: anywhere; }
.contact-layout > *, .contact-info-item > div { min-width: 0; }

.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31,138,138,0.15);
  background: #fff;
}
.form-group.error input,
.form-group.error textarea { border-color: #e05c5c; }
.error-message { color: #e05c5c; font-size: 0.82rem; margin-top: 6px; display: none; }
.form-group.error .error-message { display: block; }
.form-success {
  display: none;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ===== Footer ===== */
.site-footer { background: #0e2a2c; color: #cfe6e4; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-col h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.footer-col p { color: #9fc2bf; font-size: 0.92rem; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; color: #9fc2bf; }
.footer-col a { color: #9fc2bf; font-size: 0.92rem; overflow-wrap: anywhere; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-col .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cfe6e4;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-col .footer-social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-practice { margin-bottom: 14px; line-height: 1.5; }
.footer-practice strong { display: block; color: #fff; font-weight: 600; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: #9fc2bf; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #7fa5a2;
}

/* ===== Did You Know? (blog) ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.post-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card p { font-size: 0.95rem; margin-bottom: 16px; }
.post-card .card-link { margin-top: auto; }

.page-hero .post-meta { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 14px; }
.page-hero--photo .post-meta { text-shadow: 0 2px 14px rgba(8, 48, 48, 0.35); }
.page-hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; }

.post-article { max-width: 760px; margin: 0 auto; }
.post-article > * + * { margin-top: 1.1em; }
.post-article p, .post-article li { font-size: 1.05rem; line-height: 1.75; }
.post-article h2 { font-size: 1.5rem; margin-top: 2em; }
.post-article h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post-article ul, .post-article ol { padding-left: 1.4em; }
.post-article ul { list-style: disc; }
.post-article ol { list-style: decimal; }
.post-article li { color: var(--color-text-light); margin-top: 0.6em; padding-left: 0.2em; }
.post-article li::marker { color: var(--color-primary); font-weight: 600; }
.post-article strong { color: var(--color-text); font-weight: 600; }
.post-article a:not(.btn) { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-article blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 4px 0 4px 22px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
}
.post-article ol.post-references { font-size: 0.9rem; padding-left: 1.6em; }
.post-article ol.post-references li { font-size: 0.9rem; line-height: 1.6; margin-top: 0.8em; }
.post-article .post-references a { word-break: break-word; }
.post-figure img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow); }
.post-figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--color-text-light); text-align: center; }
.post-callout {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: var(--color-text-light);
}
.post-note {
  margin-top: 2.6em !important;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}
.post-nav { margin-top: 1.6em !important; }

/* ===== Scroll reveal ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .main-nav { position: fixed; top: 73px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); transform: translateY(-150%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; z-index: 90; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; padding: 20px 24px; gap: 18px; }
  .header-actions .phone-link { display: none; }
  .main-nav .nav-phone { display: list-item; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero-inner, .about-inner, .about-detail-inner, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid, .services-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 60px 1fr; }
}

@media (max-width: 780px) {
  .hero h1 { font-size: 2rem; }
  .features-grid, .services-grid, .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 60px 0; }
}

@media (max-width: 600px) {
  .header-actions .btn { display: none; }
  .header-inner { gap: 12px; }
}
@media (max-width: 380px) {
  .logo { font-size: 1.05rem; }
  .page-hero h1 { font-size: 1.85rem; overflow-wrap: break-word; }
}

.alt-bg { background: var(--color-bg-alt); }

.form-success.is-error {
  background: #fdeceb;
  color: #c0392b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-success.is-error {
  background: #fdeceb;
  color: #c0392b;
}

/* ===== Cookie notice ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner-text { flex: 1 1 320px; margin: 0; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
