/* =========================================================
   DAFTAR ISI
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Buttons
   5.  Navbar
   6.  Hero
   7.  Stats
   8.  About
   9.  Quote
   10. Services
   11. Timeline
   12. Gallery
   13. Testimonials
   14. Contact
   15. Footer
   16. Back to Top
   17. Animations
   18. Responsive
   ========================================================= */

/* ================= 1. VARIABLES ================= */
:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --navy-3: #1c3a66;
  --red: #e63946;
  --red-dark: #c1121f;
  --gold: #f4b942;
  --light: #f6f8fc;
  --white: #ffffff;
  --text: #2b3445;
  --muted: #6b7486;
  --border: #e5e9f0;

  --radius: 18px;
  --shadow: 0 20px 50px rgba(11, 31, 58, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 31, 58, 0.08);

  --font-body: "Montserrat", system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;

  --nav-h: 78px;
}

/* ================= 2. RESET & BASE ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

svg {
  fill: currentColor;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

/* ================= 3. TYPOGRAPHY ================= */
h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title em {
  color: var(--red);
  font-style: italic;
}

.section-title.light {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.eyebrow.dark {
  color: var(--red);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head p {
  color: var(--muted);
}

/* ================= 4. BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(230, 57, 70, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ================= 5. NAVBAR ================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  height: 68px;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo text is black on a transparent PNG, so it needs a light backdrop on dark sections */
.logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .nav-cta {
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ================= 6. HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(244, 185, 66, 0.2), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.3rem);
  color: var(--white);
  margin-bottom: 1.4rem;
}

.highlight {
  color: var(--gold);
  position: relative;
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  background: rgba(230, 57, 70, 0.5);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 3rem;
}

/* Countdown */
.countdown {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 470px;
  backdrop-filter: blur(6px);
}

.countdown-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.countdown-grid div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 4px;
}

.countdown-grid span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.countdown-grid small {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

/* Portrait */
.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 3px solid var(--gold);
  border-radius: 200px 200px 24px 24px;
  z-index: -1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 200px 200px 24px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Floating badges */
.badge {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 20px;
  animation: float 4s ease-in-out infinite;
}

.badge-top {
  top: 18%;
  left: -40px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-top strong {
  font-size: 1.8rem;
  color: var(--red);
}

.badge-top span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.badge-bottom {
  bottom: 10%;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  animation-delay: 1.5s;
}

.badge-bottom strong {
  color: var(--red);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll 1.8s infinite;
}

/* ================= 7. STATS ================= */
.stats {
  position: relative;
  margin-top: -1px;
  background: var(--red);
  color: var(--white);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-num,
.stat-suffix {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}

.stat p {
  font-weight: 500;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ================= 8. ABOUT ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
  padding: 0 60px 80px 0;
}

.img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.img-secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.exp-card {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  box-shadow: var(--shadow);
  max-width: 170px;
}

.exp-card strong {
  font-size: 2.2rem;
  color: var(--gold);
}

.exp-card span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.about-content > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 2rem 0;
}

.values li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  transition: all 0.3s;
}

.values li:hover .value-icon {
  background: var(--red);
  color: var(--white);
  transform: rotate(-8deg);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.values h3 {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.7;
}

.values p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.signature {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.sig {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--navy);
}

.sig-role {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
}

/* ================= 9. QUOTE ================= */
.quote-band {
  background:
    linear-gradient(rgba(11, 31, 58, 0.88), rgba(11, 31, 58, 0.88)),
    url("https://images.unsplash.com/photo-1494172961521-33799ddd43a5?auto=format&fit=crop&w=1600&q=80") center / cover fixed;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}

.quote-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin: 0 auto 1.5rem;
}

.quote-band blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.quote-band cite {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ================= 10. SERVICES ================= */
.services {
  background: var(--light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 0;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  transition: height 0.4s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  height: 100%;
}

.card:hover h3,
.card:hover p {
  color: var(--white);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: var(--white);
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  transition: color 0.3s, letter-spacing 0.3s;
}

.card:hover .card-link {
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* ================= 11. TIMELINE ================= */
.timeline-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}

.timeline-section .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--gold), var(--red));
  transform: translateX(-50%);
  border-radius: 3px;
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 50px 50px;
}

.tl-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.tl-item:nth-child(even) {
  left: 50%;
}

.tl-dot {
  position: absolute;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 5px solid var(--navy);
  box-shadow: 0 0 0 3px var(--gold);
}

.tl-item:nth-child(odd) .tl-dot {
  right: -11px;
}

.tl-item:nth-child(even) .tl-dot {
  left: -11px;
}

.tl-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.3s ease;
}

.tl-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.tl-year {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tl-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.tl-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ================= 12. GALLERY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}

.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.g-tall {
  grid-row: span 2;
}

.g-wide {
  grid-column: span 2;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.85), transparent 60%);
  opacity: 0.6;
  transition: opacity 0.4s;
}

.g-item figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--white);
  font-weight: 700;
  z-index: 1;
  transform: translateY(6px);
  transition: transform 0.4s;
}

.g-item:hover img {
  transform: scale(1.08);
}

.g-item:hover::after {
  opacity: 1;
}

.g-item:hover figcaption {
  transform: translateY(0);
}

/* ================= 13. TESTIMONIALS ================= */
.testimonials {
  background: var(--light);
}

.slider {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  min-width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 50px 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.slide p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.author img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.author strong {
  display: block;
  color: var(--navy);
}

.author span {
  font-size: 0.85rem;
  color: var(--muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  border: none;
  background: #c8cfdb;
  cursor: pointer;
  transition: all 0.3s;
}

.dots button.active {
  width: 30px;
  background: var(--red);
}

/* ================= 14. CONTACT ================= */
.contact {
  background:
    radial-gradient(circle at 0% 0%, rgba(230, 57, 70, 0.25), transparent 40%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.contact-list svg {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.socials a:hover {
  background: var(--red);
  transform: translateY(-4px);
}

.socials svg {
  width: 18px;
  height: 18px;
}

/* Form */
.contact-form {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--light);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.3s, background 0.3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.field.error input {
  border-color: var(--red-dark);
}

.form-msg {
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-msg.success {
  color: #16a34a;
}

.form-msg.fail {
  color: var(--red-dark);
}

/* ================= 15. FOOTER ================= */
.footer {
  background: #07152a;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  transition: color 0.3s, padding 0.3s;
}

.footer ul a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-text {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.newsletter {
  display: flex;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 5px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--white);
  font-family: inherit;
}

.newsletter input:focus {
  outline: none;
}

.newsletter button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter button:hover {
  background: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 22px 4%;
  font-size: 0.85rem;
}

/* ================= 16. BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy);
}

/* ================= 17. ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================= 18. RESPONSIVE ================= */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .about-grid,
  .contact-grid {
    gap: 50px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge-top {
    left: -10px;
  }

  .badge-bottom {
    right: -10px;
  }
}

/* ---------- Small tablet (≤ 900px) ---------- */
@media (max-width: 900px) {
  .section {
    padding: 85px 0;
  }

  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 82%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px 36px;
    background: var(--navy);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links .nav-cta {
    margin-top: 10px;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-lead,
  .countdown {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero .eyebrow::before {
    display: none;
  }

  .portrait-frame {
    width: min(320px, 80%);
  }

  .scroll-down {
    display: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About & Contact */
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  /* Quote */
  .quote-band {
    background-attachment: scroll;
  }

  /* Timeline: single column */
  .timeline::before {
    left: 11px;
  }

  .tl-item,
  .tl-item:nth-child(even),
  .tl-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 36px 46px;
  }

  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot {
    left: 0;
    right: auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
}

/* ---------- Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  :root {
    --nav-h: 68px;
  }

  .section {
    padding: 70px 0;
  }

  /* Navbar */
  .logo {
    padding: 5px 10px;
  }

  .logo img {
    height: 36px;
  }

  /* Hero */
  .hero-actions .btn {
    width: 100%;
  }

  .countdown {
    padding: 16px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-grid span {
    font-size: 1.4rem;
  }

  .badge {
    padding: 10px 14px;
  }

  .badge-top {
    left: -6px;
  }

  .badge-top strong {
    font-size: 1.3rem;
  }

  .badge-bottom {
    right: -6px;
    font-size: 0.85rem;
  }

  /* Stats */
  .stats {
    padding: 40px 0;
  }

  .stats-grid {
    gap: 26px 14px;
  }

  /* About */
  .about-images {
    padding: 0 30px 50px 0;
  }

  .exp-card {
    left: -8px;
    top: 16px;
    padding: 14px 16px;
  }

  .exp-card strong {
    font-size: 1.6rem;
  }

  .values {
    grid-template-columns: 1fr;
  }

  /* Services */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 32px 26px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .g-tall {
    grid-row: span 1;
  }

  .g-wide {
    grid-column: span 1;
  }

  /* Testimonials */
  .slide {
    padding: 36px 24px 30px;
  }

  .author {
    flex-direction: column;
    text-align: center;
  }

  /* Contact */
  .contact-form {
    padding: 32px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
