/* =====================================================================
   Froid Max - Main stylesheet
   Author: Mahdi Deramgozin - 2026-07-10
   Palette: navy #0B1B3A / blue #1D6FE0 / ice #E9F2FF / red #D62839
   ===================================================================== */

:root {
  --navy: #0B1B3A;
  --navy-2: #12264E;
  --blue: #1D6FE0;
  --blue-dark: #1656B0;
  --ice: #E9F2FF;
  --red: #D62839;
  --red-dark: #B01E2D;
  --ink: #1C2536;
  --muted: #5C6B82;
  --line: #DCE5F2;
  --bg: #FFFFFF;
  --bg-alt: #F4F8FE;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(11, 27, 58, 0.10);
  --font-display: "Archivo", "Vazirmatn", system-ui, sans-serif;
  --font-body: "Inter", "Vazirmatn", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); margin: 0 0 0.5rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* --- Signature: thermal strip (cold -> hot gradient) --- */
.thermal-strip {
  height: 4px; width: 96px; border-radius: 4px; margin: 10px 0 14px;
  background: linear-gradient(90deg, var(--ice) 0%, var(--blue) 40%, var(--navy) 65%, var(--red) 100%);
}
.section-head.light .thermal-strip,
.hero .thermal-strip { background: linear-gradient(90deg, #7FB4FF 0%, var(--blue) 45%, var(--red) 100%); }
.center .thermal-strip, .section-head .thermal-strip { margin-left: 0; }
.page-hero .thermal-strip { margin: 12px auto 14px; }

/* --- Top bar --- */
.topbar { background: var(--navy); color: #C9D8F2; font-size: 0.85rem; }
.topbar-inner { display: flex; align-items: center; gap: 18px; padding: 6px 20px; flex-wrap: wrap; }
.topbar-phone { margin-inline-start: auto; color: #fff; font-weight: 600; }
.topbar-phone:hover { color: var(--ice); }
.topbar-247 { display: inline-flex; align-items: center; gap: 6px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --- Header / nav --- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.5px; }
.brand-max { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: 8px 16px;
  border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--red-dark); }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang-switch a { padding: 3px 9px; border-radius: 6px; font-size: 0.82rem; color: var(--muted); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* --- Hero --- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(29,111,224,0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(214,40,57,0.22), transparent 60%),
    var(--navy);
  color: #DCE7FA; padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8FB4EE; font-weight: 600; margin-bottom: 10px;
}
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 0.9rem; color: #B9CCEC; }

.hero-placeholder {
  display: flex; align-items: stretch; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; box-shadow: var(--shadow);
}
.hero-placeholder > div { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-placeholder svg { width: 90px; height: 90px; opacity: 0.9; }
.hp-cold { background: linear-gradient(160deg, #17орів3F72, #1D6FE0); color: #DAEAFF; }
.hp-hot { background: linear-gradient(160deg, #7A1420, var(--red)); color: #FFE1E5; }

/* --- Slider --- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slide { display: none; }
.slide.active { display: block; }
.slide img { width: 100%; height: 340px; object-fit: cover; }
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11,27,58,0.85));
  color: #fff; padding: 34px 18px 14px; display: flex; flex-direction: column;
}
.slider-dots { position: absolute; bottom: 10px; inset-inline-end: 12px; display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; }
.dot.active { background: #fff; }

/* --- Sections --- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #B9CCEC; }

.page-hero { background: var(--ice); padding: 48px 0; text-align: center; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service-card p { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--ice), #CFE2FF); color: var(--blue-dark);
}
.service-icon.big { width: 64px; height: 64px; flex-shrink: 0; }
.services-list { display: flex; flex-direction: column; gap: 26px; }
.service-row {
  display: flex; gap: 22px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.service-row h2 { font-size: 1.3rem; }
.service-row p { color: var(--muted); margin: 6px 0 14px; }

/* --- Why band --- */
.why-band { background: var(--navy); color: #DCE7FA; padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-item {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 22px; display: flex; align-items: center; gap: 14px;
}
.why-icon { color: #8FB4EE; display: inline-flex; }
.why-emergency { margin-top: 22px; color: #FFB3BC; font-weight: 500; }

/* --- Gallery --- */
.gallery-preview, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.gallery-preview img, .gallery-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 10px;
  transition: transform 0.15s;
}
.gallery-preview a:hover img, .gallery-item a:hover img { transform: scale(1.02); }
.gallery-item { margin: 0; }
.gallery-item figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.album-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; color: var(--ink); transition: box-shadow 0.15s;
}
.album-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.album-card img { height: 190px; width: 100%; object-fit: cover; }
.album-card-body { padding: 16px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.album-card-body span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.album-title { margin-bottom: 4px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(8,16,34,0.92); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 14px; inset-inline-end: 20px; font-size: 2.2rem;
  background: none; border: 0; color: #fff; cursor: pointer; line-height: 1;
}

/* --- Blog --- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-bottom: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.post-card img { height: 180px; width: 100%; object-fit: cover; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.post-card-body time { font-size: 0.8rem; color: var(--muted); }
.post-card-body h3 a { color: var(--navy); }
.post-card-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.read-more { font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.pagination { display: flex; gap: 8px; justify-content: center; }
.pagination a {
  min-width: 38px; text-align: center; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--ink);
}
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-single .post-cover { border-radius: var(--radius); margin: 18px 0; }
.post-meta { color: var(--muted); font-size: 0.9rem; }
.post-body { font-size: 1.03rem; }
.post-body img { border-radius: 10px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }

/* --- Forms --- */
.reservation-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.92rem; }
.form-full { grid-column: 1 / -1; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: #E7F7EC; color: #146C2E; border: 1px solid #B7E4C3; }
.alert-error { background: #FDECEE; color: #96222F; border: 1px solid #F5C3C9; }

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 55%, #4A1220 100%);
  color: #fff; padding: 44px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 4px; }
.cta-banner p { margin: 0; color: #C9D8F2; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer { background: #0A1730; color: #A9BCDD; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 34px; padding: 52px 20px 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-about { font-size: 0.92rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-links a, .footer-contact a { color: #A9BCDD; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: #8FB4EE; font-size: 0.9rem; }
.site-footer .thermal-strip { width: 100%; margin: 0; border-radius: 0; }
.footer-bottom { padding: 16px 0; font-size: 0.82rem; }
.brand-footer .brand-text { color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .service-row { flex-direction: column; }
}
