﻿@import url("./index.css");
@import url("./services.css");
@import url("./about.css");
@import url("./contact.css");
@import url("./service-pages.css");
@import url("./blog-article.css");

:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --line: #d7dfe6;
  --text: #1a2631;
  --muted: #546474;
  --accent: #d6de23;
  --accent-dark: #a7af12;
  --header-dark: #05070b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 104px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 46%, #f5f6f7 100%);
  line-height: 1.55;
}

a {
  color: #1e5f78;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

main [id] {
  scroll-margin-top: 104px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--header-dark);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.topbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand-accent {
  color: var(--accent);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: url("../images/brand/bathbridge-mark.svg") center / contain no-repeat;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link,
.nav-dropdown > a {
  color: #ffffff;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1;
}

.nav-link:hover,
.nav-dropdown > a:hover,
.nav-link.is-active,
.nav-dropdown > a.is-active {
  color: var(--accent);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 250px;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: #0d1118;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #dfe6ed;
}

.dropdown-menu li a:hover {
  background: rgba(214, 222, 35, 0.14);
  color: var(--accent);
  text-decoration: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 600;
  white-space: nowrap;
}

.phone-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.phone-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border-radius: 4px;
  background: var(--accent);
  color: #11120f;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.book-btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.motion-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.motion-btn {
  position: relative;
  overflow: hidden;
}

.motion-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 42%,
    transparent 75%
  );
  transform: translateX(-130%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

[data-aos] {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 26px, 0);
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .motion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(12, 20, 31, 0.16);
  }

  .motion-btn:hover::after {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-card,
  .motion-btn::after,
  [data-aos] {
    transition: none;
  }
}

.burger-btn {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.burger-btn span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  display: block;
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.services-hero,
.about-hero,
.contact-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #04060a 0%, #0a1220 60%, #111e31 100%);
}

.hero::before,
.services-hero::before,
.about-hero::before,
.contact-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(214, 222, 35, 0.16), transparent 38%);
  pointer-events: none;
}

.hero h1,
.services-hero h1,
.about-hero h1,
.contact-hero h1,
.detail-hero h1,
.hero h2,
.services-hero h2,
.about-hero h2,
.contact-hero h2,
.detail-hero h2 {
  color: #ffffff;
}

.hero p,
.services-hero p,
.about-hero p,
.contact-hero p,
.detail-hero p {
  color: rgba(225, 233, 241, 0.9);
}

.hero .eyebrow,
.services-hero .eyebrow,
.about-hero .eyebrow,
.contact-hero .eyebrow,
.detail-hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

p {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e5f78;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #1f6f8b;
  color: #fff;
}

.btn-primary:hover {
  background: #184f63;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #030814;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 84px
  );
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  padding-top: 52px;
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1.2fr;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.footer-brand:hover {
  text-decoration: none;
}

.footer-about {
  margin: 18px 0 0;
  max-width: 38ch;
  color: rgba(225, 233, 241, 0.86);
}

.footer-col h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 2rem;
}

.footer-col p {
  margin: 0;
  color: rgba(225, 233, 241, 0.86);
}

.footer-subtitle {
  margin: 18px 0 8px;
  color: rgba(225, 233, 241, 0.92);
  font-size: 1rem;
  font-weight: 700;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a,
.footer-list span {
  color: rgba(225, 233, 241, 0.9);
  font-size: 1.04rem;
}

.footer-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.operator-company {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.7rem;
}

.operator-heading {
  font-size: 0.7rem;
}

.operator-company + p {
  font-size: 0.7rem;
  line-height: 1.35;
}

.operator-meta {
  margin-top: 8px;
  font-size: 0.59rem;
  color: rgba(225, 233, 241, 0.82);
  line-height: 1.35;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  padding-bottom: 22px;
}

.footer-disclaimer {
  margin: 0;
  color: rgba(216, 225, 234, 0.88);
  font-size: 0.74rem;
  line-height: 1.45;
}

.page-legal .legal-main {
  padding-top: 148px;
}

.page-legal .legal-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: 12px;
  padding: 24px;
}

.page-legal .legal-card h1 {
  margin: 0 0 10px;
  color: #101722;
}

.page-legal .legal-card p {
  margin: 0 0 10px;
}

.page-legal .legal-card h2 {
  margin: 18px 0 8px;
  color: #111a26;
  font-size: 1.34rem;
}

.page-legal .legal-card h3 {
  margin: 14px 0 8px;
  color: #152131;
  font-size: 1.1rem;
}

.page-legal .legal-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #334353;
}

.page-legal .legal-card li + li {
  margin-top: 4px;
}

.page-legal .legal-card strong {
  color: #111b28;
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2200;
  display: none;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent__panel {
  width: min(1060px, 100%);
  margin: 0 auto;
  background: #05070b;
  border: 1px solid rgba(214, 222, 35, 0.5);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.36);
}

.cookie-consent__bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 14px 12px;
}

.cookie-consent__text strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.cookie-consent__text p {
  margin: 4px 0 0;
  color: rgba(225, 233, 241, 0.86);
  font-size: 0.92rem;
  max-width: 66ch;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.cookie-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #11150f;
}

.cookie-btn--accent:hover {
  background: #b7c01c;
  border-color: #b7c01c;
}

.cookie-btn--outline {
  background: transparent;
  border-color: rgba(225, 233, 241, 0.5);
  color: #dfe7ef;
}

.cookie-btn--outline:hover {
  border-color: rgba(214, 222, 35, 0.74);
  color: var(--accent);
}

.cookie-btn--ghost {
  background: rgba(225, 233, 241, 0.06);
  border-color: rgba(225, 233, 241, 0.14);
  color: #dfe7ef;
}

.cookie-btn--ghost:hover {
  background: rgba(225, 233, 241, 0.12);
}

.cookie-consent__prefs {
  display: none;
  border-top: 1px solid rgba(225, 233, 241, 0.15);
  padding: 14px;
}

.cookie-consent.is-customizing .cookie-consent__prefs {
  display: block;
}

.cookie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cookie-item {
  background: rgba(225, 233, 241, 0.04);
  border: 1px solid rgba(225, 233, 241, 0.16);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.cookie-item__head {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.cookie-item__desc {
  color: rgba(225, 233, 241, 0.78);
  font-size: 0.82rem;
  line-height: 1.35;
}

.cookie-item input[type="checkbox"] {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.cookie-form__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-settings-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2190;
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(214, 222, 35, 0.48);
  background: #05070b;
  color: #dfe7ef;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-settings-fab:hover {
  border-color: rgba(214, 222, 35, 0.82);
  color: var(--accent);
}

.cookie-settings-fab.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes phonePulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 222, 35, 0.55), 0 0 0 0 rgba(214, 222, 35, 0.32);
  }

  65% {
    box-shadow: 0 0 0 8px rgba(214, 222, 35, 0), 0 0 18px 2px rgba(214, 222, 35, 0.3);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(214, 222, 35, 0), 0 0 0 0 rgba(214, 222, 35, 0);
  }
}

@media (max-width: 980px) {
  body.menu-open-lock {
    overflow: hidden;
  }

  html {
    scroll-padding-top: 92px;
  }

  main [id] {
    scroll-margin-top: 92px;
  }

  .topbar {
    min-height: 78px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .header-actions {
    justify-self: end;
    gap: 8px;
  }

  .phone-btn {
    padding: 8px;
    position: relative;
    z-index: 1101;
    border-color: rgba(214, 222, 35, 0.56);
    background: rgba(5, 7, 11, 0.72);
  }

  .phone-icon {
    color: var(--accent);
    border-color: rgba(214, 222, 35, 0.7);
    animation: phonePulseGlow 1.8s ease-out infinite;
  }

  .phone-text,
  .book-btn {
    display: none;
  }

  .burger-btn {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 0;
    border-color: rgba(255, 255, 255, 0.32);
    z-index: 1102;
  }

  .burger-btn span {
    width: 24px;
    height: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  }

  .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 100px 16px 24px;
    border-top: 0;
    background: #ececef;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity 0.2s ease, transform 0.28s ease, visibility 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-header.menu-open .brand {
    opacity: 0;
    pointer-events: none;
  }

  .site-header.menu-open .phone-btn {
    display: none;
  }

  .site-header.menu-open .burger-btn {
    border-color: var(--accent);
    background: var(--accent);
  }

  .site-header.menu-open .burger-btn span {
    background: #0f141b;
  }

  .site-header.menu-open .burger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.menu-open .burger-btn span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .burger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav > .nav-link,
  .main-nav > .nav-dropdown > a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: #111821;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 12px 0;
    border-bottom: 1px solid #d9dde2;
  }

  .main-nav > .nav-link:hover,
  .main-nav > .nav-dropdown > a:hover,
  .main-nav > .nav-link.is-active,
  .main-nav > .nav-dropdown > a.is-active {
    color: #111821;
    text-decoration: none;
  }

  .main-nav > .nav-link[href$="index.html"] {
    order: 1;
  }

  .main-nav > .nav-link[href$="about.html"] {
    order: 2;
  }

  .main-nav > .nav-dropdown {
    order: 3;
  }

  .main-nav > .nav-link.nav-blog {
    order: 4;
    display: flex;
  }

  .main-nav > .nav-link[href$="contact.html"] {
    order: 5;
  }

  .nav-dropdown {
    width: 100%;
  }

  .main-nav > .nav-dropdown > a::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #111821;
    border-bottom: 2px solid #111821;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .main-nav > .nav-dropdown.is-open > a::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    margin-top: 0;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 520px;
  }

  .dropdown-menu li a {
    padding: 9px 0;
    border-bottom: 1px solid #d7dce2;
    border-radius: 0;
    color: #273646;
    font-size: 1.08rem;
  }

  .dropdown-menu li a:hover {
    background: transparent;
    color: #0f1a28;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding-top: 42px;
  }

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

  .cookie-consent__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 26px;
  }

  .footer-brand {
    font-size: 1.8rem;
  }

  .footer-col h3 {
    font-size: 1.42rem;
  }

  .footer-list a,
  .footer-list span {
    font-size: 0.98rem;
  }

  .footer-bottom {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

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

  .cookie-form__actions {
    justify-content: flex-start;
  }

  .cookie-settings-fab {
    left: 10px;
    bottom: 10px;
  }
}
