/* ===========================
   ROOT & RESET
   =========================== */
:root {
  --color-primary: #16425B;
  --color-accent: #81C3D7;
  --color-services-bg: #D9DCD6;
  --color-box-bg: #E8EBE5;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #444;
  --font: 'Inter', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.14);
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-white);
}

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

a {
  text-decoration: none;
}

/* ===========================
   UTILITY
   =========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary);
  box-shadow: 0 6px 22px rgba(22, 66, 91, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 22px rgba(22, 66, 91, 0.25);
  transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.4rem 2rem;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: var(--color-primary);
  padding: 0.9rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #16425B;
  box-shadow: 0 4px 16px rgba(22, 66, 91, 0.4);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #2e4a5e;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #16425B;
  opacity: 0.75;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-white);
  max-width: 720px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.92;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  background: var(--color-services-bg);
  padding: 6rem 2rem;
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-box {
  background: var(--color-box-bg);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.service-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-box p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  background: var(--color-white);
  padding: 6rem 2rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: calc(var(--radius) + 4px);
  z-index: 0;
}

.portrait-placeholder,
.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--color-services-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.88rem;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portrait-placeholder svg {
  opacity: 0.3;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0f7fb;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.about-highlight p {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===========================
   REFERENCES PLACEHOLDER
   =========================== */
.references {
  background: var(--color-services-bg);
  padding: 6rem 2rem;
}

.references-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.ref-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.ref-img-wrap {
  width: 100%;
  height: 100%;
}

.ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

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

/* Overlay — slides up from bottom */
.ref-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: rgba(58, 124, 165, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
}

.ref-card:hover .ref-overlay {
  transform: translateY(0);
}

.ref-overlay-content {
  text-align: center;
  color: var(--color-white);
}

.ref-overlay-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.ref-overlay-content p {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.ref-link:hover {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .references {
    padding: 4rem 0;
  }

  .references .container {
    padding: 0;
  }

  .references-header {
    padding: 0 1.5rem;
  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .ref-card {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===========================
   CONTACT PAGE
   =========================== */
.page-hero {
  background: var(--color-primary);
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
}

.contact-section {
  padding: 5rem 2rem;
  background: #f8f9f8;
}

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-detail-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-top: 0.45rem;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde1de;
  border-radius: 6px;
  background: #f9faf9;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(129, 195, 215, 0.18);
  background: var(--color-white);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: var(--color-primary);
  box-shadow: 0 6px 20px rgba(22, 66, 91, 0.35);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  margin-top: 1rem;
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-section {
  padding: 5rem 2rem;
}

.privacy-inner {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-inner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 0.8rem;
}

.privacy-inner h2:first-child {
  margin-top: 0;
}

.privacy-inner p, .privacy-inner li {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.privacy-inner ul {
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.privacy-inner a {
  color: var(--color-accent);
}

.privacy-inner a:hover {
  color: var(--color-primary);
}

/* ===========================
   COOKIE BANNER
   =========================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-primary);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner__text strong {
  display: block;
  color: var(--color-white);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.cookie-banner__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.cookie-btn--accept {
  background: var(--color-accent);
  color: var(--color-white);
}

.cookie-btn--accept:hover {
  background: #6ab3ca;
  transform: translateY(-1px);
}

.cookie-btn--decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn--decline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 998;
  }

  .nav-links.open a {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1000;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}
