/* AdriaDroit — Coastal Adriatic Legal Site */
:root {
  --ad-cyan: #0891b2;
  --ad-cyan-dark: #0e7490;
  --ad-rose: #f43f5e;
  --ad-rose-dark: #e11d48;
  --ad-aqua: #ecfeff;
  --ad-aqua-mid: #cffafe;
  --ad-white: #ffffff;
  --ad-text: #164e63;
  --ad-text-muted: #5b7c8a;
  --ad-shadow: 0 4px 24px rgba(8, 145, 178, 0.12);
  --ad-radius: 16px;
  --ad-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ad-font);
  color: var(--ad-text);
  background: linear-gradient(160deg, var(--ad-aqua) 0%, var(--ad-aqua-mid) 45%, #f0fdfa 100%);
  min-height: 100vh;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ad-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ad-rose);
}

.ad-container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.ad-header {
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ad-aqua-mid);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ad-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ad-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ad-cyan-dark);
}

.ad-logo i {
  color: var(--ad-rose);
  font-size: 1.5rem;
}

.ad-logo span {
  color: var(--ad-rose);
}

.ad-header__tagline {
  font-size: 0.85rem;
  color: var(--ad-text-muted);
  text-align: right;
}

/* Hero */
.ad-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0 0 var(--ad-radius) var(--ad-radius);
}

.ad-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ad-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.82) 0%, rgba(244, 63, 94, 0.55) 100%);
  z-index: 1;
}

.ad-hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  color: var(--ad-white);
  max-width: 680px;
}

.ad-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ad-hero__content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-btn--primary {
  background: var(--ad-rose);
  color: var(--ad-white);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
}

.ad-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.45);
  color: var(--ad-white);
}

.ad-btn--outline {
  background: transparent;
  color: var(--ad-white);
  border: 2px solid var(--ad-white);
}

.ad-btn--outline:hover {
  background: var(--ad-white);
  color: var(--ad-cyan);
}

.ad-btn--cyan {
  background: var(--ad-cyan);
  color: var(--ad-white);
}

.ad-btn--cyan:hover {
  background: var(--ad-cyan-dark);
  color: var(--ad-white);
}

/* Sections */
.ad-section {
  padding: 4.5rem 0;
}

.ad-section--alt {
  background: rgba(255, 255, 255, 0.6);
}

.ad-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ad-cyan-dark);
  margin-bottom: 0.5rem;
}

.ad-section__subtitle {
  color: var(--ad-text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.ad-grid {
  display: grid;
  gap: 1.75rem;
}

.ad-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ad-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ad-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Cards */
.ad-card {
  background: var(--ad-white);
  border-radius: var(--ad-radius);
  padding: 1.75rem;
  box-shadow: var(--ad-shadow);
  border: 1px solid var(--ad-aqua-mid);
  transition: transform 0.25s;
}

.ad-card:hover {
  transform: translateY(-4px);
}

.ad-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ad-cyan), var(--ad-rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-white);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.ad-card h3 {
  color: var(--ad-cyan-dark);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.ad-card p {
  color: var(--ad-text-muted);
  font-size: 0.95rem;
}

.ad-card__img {
  border-radius: calc(var(--ad-radius) - 4px);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

/* Features strip */
.ad-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0;
}

.ad-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ad-white);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: var(--ad-shadow);
  font-size: 0.9rem;
  font-weight: 500;
}

.ad-feature i {
  color: var(--ad-rose);
}

/* Checklist tool */
.ad-checklist {
  background: var(--ad-white);
  border-radius: var(--ad-radius);
  padding: 2rem;
  box-shadow: var(--ad-shadow);
  border: 2px solid var(--ad-aqua-mid);
}

.ad-checklist__form {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ad-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ad-cyan-dark);
  font-size: 0.9rem;
}

.ad-form-group select,
.ad-form-group input,
.ad-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ad-aqua-mid);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ad-text);
  background: var(--ad-aqua);
  transition: border-color 0.2s;
}

.ad-form-group select:focus,
.ad-form-group input:focus,
.ad-form-group textarea:focus {
  outline: none;
  border-color: var(--ad-cyan);
}

.ad-checklist__results {
  display: none;
  border-top: 2px dashed var(--ad-aqua-mid);
  padding-top: 1.5rem;
}

.ad-checklist__results.ad-checklist__results--visible {
  display: block;
}

.ad-checklist__results h3 {
  color: var(--ad-rose);
  margin-bottom: 1rem;
}

.ad-permit-list {
  list-style: none;
}

.ad-permit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ad-aqua-mid);
  font-size: 0.95rem;
}

.ad-permit-list li:last-child {
  border-bottom: none;
}

.ad-permit-list i {
  color: var(--ad-cyan);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ad-permit-list .ad-permit-required {
  font-size: 0.75rem;
  background: var(--ad-rose);
  color: var(--ad-white);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}

.ad-permit-list .ad-permit-optional {
  font-size: 0.75rem;
  background: var(--ad-cyan);
  color: var(--ad-white);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}

/* Contact form */
.ad-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ad-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.ad-contact-item i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ad-cyan), var(--ad-rose));
  color: var(--ad-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ad-form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-weight: 500;
}

.ad-form-success.ad-form-success--visible {
  display: block;
}

/* About */
.ad-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ad-about-split img {
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow);
}

.ad-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ad-stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--ad-white);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow);
}

.ad-stat__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ad-rose);
}

.ad-stat__label {
  font-size: 0.85rem;
  color: var(--ad-text-muted);
}

/* Privacy */
.ad-privacy-content h2 {
  color: var(--ad-cyan-dark);
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.ad-privacy-content h3 {
  color: var(--ad-rose);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.ad-privacy-content p,
.ad-privacy-content li {
  color: var(--ad-text-muted);
  margin-bottom: 0.75rem;
}

.ad-privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Page hero (inner pages) */
.ad-page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.ad-page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--ad-cyan-dark);
  margin-bottom: 0.75rem;
}

.ad-page-hero p {
  color: var(--ad-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Footer */
.ad-footer {
  background: var(--ad-cyan-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.ad-footer a {
  color: var(--ad-aqua-mid);
}

.ad-footer a:hover {
  color: var(--ad-white);
}

.ad-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ad-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ad-footer__links h4 {
  color: var(--ad-white);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.ad-footer__links ul {
  list-style: none;
}

.ad-footer__links li {
  margin-bottom: 0.4rem;
}

.ad-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Cookie banner */
.ad-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ad-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 1.25rem;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-top: 3px solid var(--ad-cyan);
}

.ad-cookie.ad-cookie--visible {
  transform: translateY(0);
}

.ad-cookie__inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.ad-cookie__text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: var(--ad-text-muted);
}

.ad-cookie__text a {
  font-weight: 600;
}

.ad-cookie__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ad-cookie__btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.ad-cookie__btn:hover {
  opacity: 0.88;
}

.ad-cookie__btn--accept {
  background: var(--ad-cyan);
  color: var(--ad-white);
}

.ad-cookie__btn--decline {
  background: transparent;
  color: var(--ad-text-muted);
  border: 2px solid var(--ad-aqua-mid);
}

/* Radial FAB Navigation */
.ad-radial-nav {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 64px;
  height: 64px;
}

.ad-radial-nav__fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ad-cyan), var(--ad-rose));
  border: none;
  color: var(--ad-white);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(8, 145, 178, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-radial-nav__fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.45);
}

.ad-radial-nav.ad-radial-nav--open .ad-radial-nav__fab {
  transform: rotate(45deg);
}

.ad-radial-nav__fab i {
  transition: transform 0.3s;
}

.ad-radial-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 78, 99, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 5;
}

.ad-radial-nav.ad-radial-nav--open .ad-radial-nav__overlay {
  opacity: 1;
  visibility: visible;
}

.ad-radial-nav__items {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ad-radial-nav.ad-radial-nav--open .ad-radial-nav__items {
  pointer-events: auto;
}

.ad-radial-nav__link {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ad-white);
  color: var(--ad-cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--ad-shadow);
  border: 2px solid var(--ad-aqua-mid);
  transform: translate(0, 0) scale(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s, background 0.2s, color 0.2s;
  text-decoration: none;
}

.ad-radial-nav__link:hover {
  background: var(--ad-cyan);
  color: var(--ad-white);
  border-color: var(--ad-cyan);
}

.ad-radial-nav.ad-radial-nav--open .ad-radial-nav__link {
  opacity: 1;
  transform: translate(var(--ad-rx), var(--ad-ry)) scale(1);
}

.ad-radial-nav__link[data-ad-label]::after {
  content: attr(data-ad-label);
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  background: var(--ad-cyan-dark);
  color: var(--ad-white);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ad-radial-nav__link:hover::after {
  opacity: 1;
}

/* Curved arc positions — semicircle top-left from FAB */
.ad-radial-nav__link:nth-child(1) { --ad-rx: -20px;  --ad-ry: -130px; transition-delay: 0.05s; }
.ad-radial-nav__link:nth-child(2) { --ad-rx: -75px;  --ad-ry: -115px; transition-delay: 0.1s; }
.ad-radial-nav__link:nth-child(3) { --ad-rx: -120px; --ad-ry: -85px;  transition-delay: 0.15s; }
.ad-radial-nav__link:nth-child(4) { --ad-rx: -145px; --ad-ry: -40px;  transition-delay: 0.2s; }
.ad-radial-nav__link:nth-child(5) { --ad-rx: -150px; --ad-ry: 10px;   transition-delay: 0.25s; }

/* Responsive */
@media (max-width: 768px) {
  .ad-contact-grid,
  .ad-about-split,
  .ad-footer__grid {
    grid-template-columns: 1fr;
  }

  .ad-stats {
    grid-template-columns: 1fr;
  }

  .ad-header__tagline {
    display: none;
  }

  .ad-radial-nav {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .ad-cookie__inner {
    flex-direction: column;
    text-align: center;
  }
}
