/* =============================================
   RemTax Iwona Janiak – styles.css
   Navy (#0B1E3D) + Gold (#C9A84C) palette
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --navy: #0B1E3D;
  --navy-mid: #122850;
  --navy-light: #1A3A6E;
  --navy-subtle: #0D2244;
  --gold: #C9A84C;
  --gold-light: #E2C97C;
  --gold-dim: #9E7E2E;
  --cream: #F5F0E8;
  --text-main: #F2EDE3;
  --text-muted: #A8B8CC;
  --text-dark: #0E1F3A;
  --bg-alt: #0D2244;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --nav-h: 80px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-elastic: cubic-bezier(.68, -0.55, .27, 1.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
  background: transparent;
  border: none;
  color: var(--text-main);
  appearance: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ---- Section Shared ---- */
.section {
  padding-block: 7rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 3px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .25s var(--ease-out),
    color .25s var(--ease-out),
    box-shadow .25s var(--ease-out),
    transform .18s var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 168, 76, .25);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(201, 168, 76, .4);
}

.btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, .18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
  box-shadow: 0 6px 28px rgba(201, 168, 76, .35);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid rgba(255, 255, 255, .35);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1180px;
  z-index: 1000;
  transition: all .35s var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.8rem;
  background: rgba(10, 26, 56, .7);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 6px;
  transition: background .35s;
}

.navbar.scrolled .nav-inner {
  background: rgba(8, 20, 48, .95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .4);
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-img {
  height: 224px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.logo-line1 {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, .7);
}

.logo-line2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: .01em;
  line-height: 1.2;
}

.logo-text em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-links a {
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, .06);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: .5rem 1.2rem !important;
  border-radius: 4px !important;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--navy);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-pattern svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .45rem 1rem;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 2px;
  margin-bottom: 2rem;
  width: fit-content;
  background: rgba(201, 168, 76, .06);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text-main);
  margin-bottom: 1.6rem;
  max-width: 12ch;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-tel {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.stat-tel:hover { color: var(--gold-light); }

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .4rem;
  letter-spacing: .05em;
  flex-basis: 100%;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(201, 168, 76, .3);
}

/* Hero visual */
.hero-visual {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 560px;
  pointer-events: none;
  z-index: 1;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
}

.doc-card {
  position: absolute;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: 8px;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.doc-card-1 {
  width: 65%;
  top: 5%;
  left: 15%;
  padding: 2rem;
  animation: floatA 6s ease-in-out infinite;
}

.doc-card-2 {
  width: 55%;
  top: 35%;
  right: 2%;
  animation: floatB 7s ease-in-out infinite 1s;
}

.doc-card-3 {
  width: 48%;
  bottom: 8%;
  left: 5%;
  animation: floatA 8s ease-in-out infinite 2s;
}

.doc-line {
  height: 8px;
  background: rgba(201, 168, 76, .1);
  border-radius: 4px;
  margin-bottom: .7rem;
}

.doc-line.doc-line-gold {
  background: rgba(201, 168, 76, .4);
}

.doc-line.short {
  width: 60%;
}

.doc-stamp {
  margin-top: .8rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .7;
  border: 1px solid rgba(201, 168, 76, .4);
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 2px;
}

.doc-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  font-size: .8rem;
  color: var(--gold-light);
}

.doc-badge {
  text-align: right;
  color: #4CAF50;
  font-size: 1.1rem;
  margin-top: .5rem;
}

.doc-icon {
  margin-bottom: .8rem;
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(-1deg);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0px) rotate(2deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Hero section divider */
.section-divider {
  line-height: 0;
}

.section-divider svg {
  width: 100%;
}

/* ======================================================
   SERVICES
   ====================================================== */
.services {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(201, 168, 76, .12);
  border: 1.5px solid rgba(201, 168, 76, .12);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--navy-subtle);
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: background .25s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.service-card:hover {
  background: #0f2a55;
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-card:hover .service-icon svg {
  stroke: var(--gold-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, .1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .4rem;
  transition: background .25s;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  transition: stroke .25s;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.service-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.service-list {
  margin-top: .2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.service-list li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .7;
}

.service-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s var(--ease-out);
}

.service-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

/* ======================================================
   OWNER
   ====================================================== */
.owner {
  background: var(--navy);
}

.owner-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: center;
}

.owner-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.owner-portrait {
  width: 100%;
  max-width: 340px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  position: relative;
}

.owner-portrait::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(201, 168, 76, .25);
  border-radius: 4px;
  z-index: -1;
}

.owner-portrait svg {
  width: 100%;
  height: auto;
}

.owner-outside-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.owner-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .25);
  padding: .5rem 1rem;
  border-radius: 3px;
}

.owner-section-title {
  margin-bottom: .6rem !important;
}

.owner-title {
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: .03em;
  margin-bottom: .5rem;
}

.owner-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: .5rem;
}

.owner-bio {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
  margin-bottom: .6rem;
}

.owner-credentials {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.credential svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.credential div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.credential strong {
  font-size: .95rem;
  color: var(--text-main);
}

.credential span {
  font-size: .83rem;
  color: var(--text-muted);
}

/* ======================================================
   CERTIFICATES
   ====================================================== */
.certificates {
  background: var(--bg-alt);
}

.certs-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.certs-grid .cert-card {
  max-width: 560px;
  width: 100%;
}

.cert-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 168, 76, .18);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: border-color .25s, box-shadow .25s;
  cursor: default;
}

.cert-card:hover {
  border-color: rgba(201, 168, 76, .5);
  box-shadow: 0 12px 40px rgba(201, 168, 76, .08);
}

.cert-seal {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  align-self: center;
}

.cert-seal svg {
  width: 100%;
  height: 100%;
}

.cert-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: .3rem;
}

.cert-num {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: .6rem;
}

.cert-body p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: justify;
}

.cert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(201, 168, 76, .1);
  font-size: .78rem;
  color: var(--text-muted);
}

.cert-status {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #7EC8A4;
}

.cert-footer {
  /* intentionally empty */
}

.ubezpieczenie-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: rgba(201, 168, 76, .06);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 6px;
  padding: 1.5rem 2rem;
}

.ubezpieczenie-card svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.ubezpieczenie-card div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.ubezpieczenie-card strong {
  color: var(--text-main);
  font-size: .95rem;
}

.ubezpieczenie-card span {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */
.testimonials {
  background: var(--navy);
  overflow: hidden;
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials-track {
  display: flex;
  transition: transform .5s var(--ease-out);
  gap: 2rem;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  min-width: calc(100% - 2px);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.testimonial-stars {
  display: flex;
  gap: .25rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-main);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 168, 76, .1);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px solid rgba(201, 168, 76, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .05em;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: .95rem;
  color: var(--text-main);
}

.testimonial-author span {
  font-size: .82rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 2rem;
}

.dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(201, 168, 76, .25);
  cursor: pointer;
  transition: background .3s, width .3s;
  padding: 0;
}

.dot.active {
  background: var(--gold);
  width: 48px;
}

/* ======================================================
   CTA BANNER
   ====================================================== */
.cta-banner {
  position: relative;
  background: var(--navy-mid);
  padding-block: 6rem;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, .12) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 80%, rgba(11, 30, 61, .9) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: .8rem;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======================================================
   CONTACT
   ====================================================== */
.contact {
  background: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: .15rem;
}

.contact-item>div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.contact-item strong {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item span,
.contact-item a {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  transition: color .2s;
}

.contact-item a:hover {
  color: var(--gold);
}

/* Form */
.contact-form {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 168, 76, .15);
  border-radius: 10px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: .5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group label span {
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 5px;
  padding: .75rem 1rem;
  color: var(--text-main);
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}

.form-group select option {
  background: var(--navy-mid);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(168, 184, 204, .5);
}

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

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: .8rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(201, 168, 76, .4);
  border-radius: 3px;
  background: rgba(255, 255, 255, .05);
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--gold);
  margin-top: .1rem;
}

.form-check label {
  font-size: .83rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-check label a {
  color: var(--gold);
  text-decoration: underline;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1.5rem;
  background: rgba(201, 168, 76, .07);
  border: 1px solid rgba(201, 168, 76, .25);
  border-radius: 6px;
  color: var(--text-main);
}

.form-success strong {
  font-size: 1.1rem;
}

.form-success span {
  font-size: .9rem;
  color: var(--text-muted);
}

.form-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1.5rem;
  background: rgba(224, 112, 112, .07);
  border: 1px solid rgba(224, 112, 112, .3);
  border-radius: 6px;
  color: var(--text-main);
}

.form-error strong {
  font-size: 1.1rem;
}

.form-error span {
  font-size: .9rem;
  color: var(--text-muted);
}

.form-success[hidden],
.form-error[hidden] {
  display: none;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: #08162F;
  border-top: 1px solid rgba(201, 168, 76, .12);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  padding-block: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  max-width: 38ch;
}

.footer-reg {
  font-size: .8rem;
  color: rgba(168, 184, 204, .5);
  display: flex;
  gap: .5rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-nav-col h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-nav-col a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-nav-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .8rem;
  color: rgba(168, 184, 204, .5);
}

.footer-bottom em {
  color: var(--gold);
  font-style: normal;
}

.sep {
  opacity: .5;
}

/* ======================================================
   REVEAL ANIMATIONS
   ====================================================== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .doc-card {
    animation: none;
  }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1100px) {
  .hero {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .owner-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .owner-visual {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
  }

  .owner-portrait {
    max-width: 220px;
  }

  .owner-card-badge {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .navbar {
    width: calc(100% - 2rem);
    top: .75rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    background: rgba(8, 20, 48, .97);
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: 6px;
    flex-direction: column;
    padding: 1rem;
    gap: .3rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: .7rem 1rem;
    width: 100%;
    border-radius: 4px;
  }

  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .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);
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-form {
    padding: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 1.2rem;
  }

  .section {
    padding-block: 5rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    column-gap: 0.75rem;
    align-items: start;
  }

  .stat-divider {
    align-self: stretch;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-suffix {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .owner-visual {
    flex-direction: column;
  }
}

/* ======================================================
   MAP WRAPPER
   ====================================================== */
.map-wrapper {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, .18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  flex: 1;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* ======================================================
   COOKIE BANNER
   ====================================================== */
/* Cookie Bar */
.cookie-bar {
  position: fixed;
  bottom: -220px;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(8, 20, 52, .97);
  border-top: 1px solid rgba(201, 168, 76, .25);
  padding: 1.1rem 0;
  transition: bottom .45s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .4);
}

.cookie-bar.visible {
  bottom: 0;
}

.cookie-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-bar-text {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  flex: 1;
  min-width: 260px;
}

.cookie-bar-text strong {
  display: block;
  color: var(--text-main);
  font-size: .88rem;
  margin-bottom: .2rem;
}

.cookie-bar-text p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-sm {
  padding: .5rem 1.1rem !important;
  font-size: .8rem !important;
}

/* Cookie Preferences Modal */
.cookie-pref-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 14, 36, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s var(--ease-out);
}

.cookie-pref-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cookie-pref-box {
  position: relative;
  background: var(--navy-subtle);
  border: 1px solid rgba(201, 168, 76, .25);
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
  padding: 2.5rem;
}

.cookie-pref-box h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-main);
  margin: .4rem 0 .6rem;
}

.cookie-pref-intro {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-cat {
  border: 1px solid rgba(201, 168, 76, .12);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: .65rem;
  background: rgba(255, 255, 255, .02);
}

.cookie-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-cat-info strong {
  display: block;
  color: var(--text-main);
  font-size: .88rem;
  margin-bottom: .3rem;
}

.cookie-cat-info p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-always-on {
  font-size: .72rem;
  color: var(--gold);
  white-space: nowrap;
  padding: .2rem .65rem;
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
  margin-top: .1rem;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  position: relative;
  transition: background .2s;
}

.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--gold);
}

.cookie-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  left: 23px;
}

.cookie-pref-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cookie-pref-note {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .75rem;
  opacity: .75;
  line-height: 1.5;
}

.cookie-pref-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-cookie-link {
  color: var(--text-muted);
  font-size: inherit;
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s, color .2s;
}

.footer-cookie-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* ======================================================
   PRIVACY POLICY MODAL
   ====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 14, 36, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  background: var(--navy-subtle);
  border: 1px solid rgba(201, 168, 76, .25);
  border-radius: 10px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
  transform: translateY(24px);
  transition: transform .35s var(--ease-out);
  scroll-behavior: smooth;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  margin: 1rem 1rem 0 0;
  transition: background .2s, color .2s;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(201, 168, 76, .18);
  color: var(--gold);
}

.modal-content {
  padding: 1.4rem 2.4rem 2.4rem;
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.modal-content h2 em {
  color: var(--gold);
  font-style: italic;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1.6rem;
  margin-bottom: .5rem;
}

.modal-content p,
.modal-content li {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.modal-content ul {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.modal-content strong {
  color: var(--text-main);
}

.modal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-updated {
  margin-top: 2rem;
  font-size: .82rem !important;
  color: rgba(168, 184, 204, .5) !important;
  font-style: italic;
}

@media (max-width: 640px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-bar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-pref-box {
    padding: 1.5rem;
  }

  .modal-content {
    padding: 1rem 1.4rem 2rem;
  }
}