/* Premium polish — navy + gold theme */

/* Hero — see HeroSliderClient.tsx */

/* Header */
.site-header {
  isolation: isolate;
}

/* Sections */
.section {
  position: relative;
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.55);
}

.about {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
}

.why-us {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%) !important;
}

.testimonials {
  background: var(--white);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.page-hero::before {
  background: radial-gradient(circle, rgba(176, 122, 68, 0.18) 0%, transparent 70%);
  width: 600px;
  height: 600px;
}

.page-hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.breadcrumb a:hover {
  color: var(--accent) !important;
}

/* Stats */
.stat-item {
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(176, 122, 68, 0.06);
}

.stat-number {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Practice cards hover */
.practice-card:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.practice-card:hover .practice-icon {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.practice-card:hover .practice-icon i {
  color: var(--white);
}

/* Blog image top corners */
.blog-image {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* FAQ */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.faq-item.active {
  border-color: rgba(176, 122, 68, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(176, 122, 68, 0.25);
  box-shadow: var(--shadow-lg);
}

/* Contact */
.contact-info-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-info-icon {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(176, 122, 68, 0.15), rgba(176, 122, 68, 0.06));
}

.contact-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: var(--radius-sm);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(176, 122, 68, 0.15);
}

/* Article / blog detail */
.article-hero,
.blog-detail-hero {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sidebar-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.author-card {
  border-radius: var(--radius-md);
}

/* Scroll top */
.scroll-top {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  box-shadow: var(--shadow-gold);
}

.scroll-top:hover {
  background: linear-gradient(135deg, #d4a574, var(--accent-hover));
  box-shadow: 0 12px 28px var(--accent-glow);
}

/* Page loader */
.page-loader {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.loader-logo {
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  border-radius: 3px;
}

.loader-bar::after {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-hover), var(--accent));
  border-radius: 3px;
}

/* Footer bottom */
.footer-bottom {
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* Smooth selection */
::selection {
  background: rgba(176, 122, 68, 0.25);
  color: var(--primary);
}

/* Subtle link underline on content */
.article-body a,
.section-desc a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(176, 122, 68, 0.35);
}

.article-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Desktop typography — slightly tighter scale for web view */
@media (min-width: 769px) {
  html {
    font-size: 15px;
  }

  .section-title {
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  }

  .section-desc {
    font-size: 0.98rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
  }

  .hero-title {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  }

  .hero-desc {
    font-size: clamp(0.9rem, 1vw, 0.98rem);
  }

  .stat-number {
    font-size: 2.35rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.45rem;
  }

  .article-body h3 {
    font-size: 1.12rem;
  }

  .practice-single-excerpt,
  .corporate-body-text.rich-text {
    font-size: 1rem;
  }

  .practice-card h3,
  .why-card h3,
  .value-card h3 {
    font-size: 1.05rem;
  }

  .cta-banner h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  }

  .cta-banner p {
    font-size: 1rem;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .logo-title {
    font-size: 0.6rem;
    letter-spacing: 1.6px;
  }
}

/* ---- Cookie / privacy banner ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(15, 32, 58, 0.97) 0%, rgba(10, 24, 45, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.cookie-banner-text p:last-child {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-text a:hover {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner-actions .btn {
  margin: 0;
  padding: 12px 22px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cookie-banner-decline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.cookie-banner-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

body.has-cookie-banner .float-actions {
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  body.has-cookie-banner .float-actions {
    bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }
}
