/* ==========================================================================
   SUNNYPATCHZYPPY - AMALFI COASTAL LIFESTYLE STYLESHEET
   Palette: Azure (#0284C7, #0369A1), Lemon (#FACC15, #EAB308), Cream (#FFFDF8, #FBF4E6), Coral (#F43F5E)
   ========================================================================== */

:root {
  --color-azure-50: #f0f9ff;
  --color-azure-100: #e0f2fe;
  --color-azure-500: #0284c7;
  --color-azure-700: #0369a1;
  --color-azure-900: #0c4a6e;
  
  --color-lemon-300: #fde047;
  --color-lemon-400: #facc15;
  --color-lemon-500: #eab308;
  --color-lemon-600: #ca8a04;
  
  --color-coral-400: #fb7185;
  --color-coral-500: #f43f5e;
  --color-coral-600: #e11d48;
  
  --color-cream-100: #fffdf8;
  --color-cream-200: #fbf4e6;
  --color-cream-300: #f5ead0;
  
  --color-slate-800: #1e293b;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-100: #f1f5f9;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 10px 25px rgba(2, 132, 199, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream-100);
  color: var(--color-slate-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-azure-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-coral-500);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   SLIM UNSTUCK HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: static; /* Scrolls off naturally as user scrolls */
  background: #ffffff;
  border-bottom: 1px solid var(--color-cream-300);
  height: 62px;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-azure-900);
  letter-spacing: -0.01em;
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  fill: var(--color-lemon-500);
}

.brand-logo span {
  color: var(--color-coral-500);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-600);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-azure-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-lemon-500);
  border-radius: 2px;
}

.header-cta {
  background-color: var(--color-lemon-400);
  color: var(--color-slate-800);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid var(--color-lemon-500);
}

.header-cta:hover {
  background-color: var(--color-lemon-500);
  color: #000;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-slate-800);
  margin: 4px 0;
  transition: var(--transition);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85), rgba(12, 74, 110, 0.8)),
              url('images/photo-1533105079780-92b9be482077.png') center/cover no-repeat;
  color: #ffffff;
  padding: 70px 0 80px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.25);
  backdrop-filter: blur(4px);
  color: var(--color-lemon-300);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--color-azure-100);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-lemon-400);
  color: var(--color-slate-800);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-lemon-500);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-coral {
  background-color: var(--color-coral-500);
  color: #ffffff;
}

.btn-coral:hover {
  background-color: var(--color-coral-600);
  color: #ffffff;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-azure-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--color-slate-800);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-slate-600);
  font-size: 0.98rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ==========================================================================
   CARD SYSTEM
   ========================================================================== */
.coastal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-cream-300);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.coastal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-azure-100);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-azure-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.coastal-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-azure-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--color-slate-400);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-cream-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-azure-700);
  transition: var(--transition);
}

.card-btn:hover {
  color: var(--color-coral-500);
  gap: 9px;
}

/* ==========================================================================
   INTERACTIVE HIGHLIGHT BANNER
   ========================================================================== */
.lifestyle-banner {
  background: var(--color-cream-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  border: 1px solid var(--color-cream-300);
  margin: 30px 0;
}

.lifestyle-banner-text {
  flex: 1;
}

.lifestyle-banner-img {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ARTICLE DETAIL PAGES
   ========================================================================== */
.article-header {
  background: var(--color-azure-900);
  color: #ffffff;
  padding: 50px 0 45px;
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 12px 0;
  line-height: 1.25;
}

.article-meta-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-lemon-300);
  font-weight: 600;
}

.article-content-wrapper {
  max-width: 820px;
  margin: -30px auto 60px;
  background: #ffffff;
  padding: 45px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cream-300);
  box-shadow: var(--shadow-lg);
}

.article-main-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--color-azure-900);
  margin: 30px 0 14px;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-slate-800);
  margin: 22px 0 10px;
}

.article-content p {
  font-size: 1rem;
  color: var(--color-slate-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-callout {
  background-color: var(--color-azure-50);
  border-left: 4px solid var(--color-azure-500);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 25px 0;
}

.article-callout h4 {
  font-weight: 700;
  color: var(--color-azure-900);
  margin-bottom: 6px;
}

.article-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-slate-600);
}

.spec-list {
  list-style: none;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-list li {
  background: var(--color-cream-100);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-cream-300);
  font-size: 0.9rem;
}

.spec-list strong {
  color: var(--color-azure-900);
}

/* ==========================================================================
   CONTACT FORM & LEGAL PAGES
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-info-card {
  background: var(--color-azure-900);
  color: #ffffff;
  padding: 35px;
  border-radius: var(--radius-md);
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-detail-item {
  margin-bottom: 22px;
}

.contact-detail-item span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-lemon-400);
  margin-bottom: 4px;
}

.contact-form {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cream-300);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-cream-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--color-cream-100);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-azure-500);
  background-color: #ffffff;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.legal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 45px;
  border: 1px solid var(--color-cream-300);
  box-shadow: var(--shadow-sm);
  margin: 40px 0;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-azure-900);
  margin: 28px 0 10px;
}

.legal-content p, .legal-content ul {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 22px;
}

/* ==========================================================================
   UNIFIED MANDATORY FOOTER (ON ALL PAGES)
   ========================================================================== */
.site-footer {
  background-color: #082f49;
  color: #cbd5e1;
  padding: 55px 0 25px;
  margin-top: 50px;
  border-top: 3px solid var(--color-lemon-400);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-lemon-400);
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-lemon-300);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-badge {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* ==========================================================================
   PERSISTENT COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-azure-500);
  z-index: 9999;
  display: none; /* Controlled by Javascript */
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content h4 {
  font-size: 1rem;
  color: var(--color-azure-900);
  margin-bottom: 6px;
  font-weight: 700;
}

.cookie-content p {
  font-size: 0.82rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 14px;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.btn-accept {
  background-color: var(--color-azure-700);
  color: #ffffff;
}

.btn-pref {
  background-color: var(--color-slate-100);
  color: var(--color-slate-800);
}

/* ==========================================================================
   RESPONSIVE DESIGN (320px, 768px, 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 56px;
  }
  .nav-wrapper {
    height: 56px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--color-lemon-400);
    gap: 1rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .lifestyle-banner {
    flex-direction: column;
    padding: 25px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .article-content-wrapper {
    padding: 25px;
    margin-top: -20px;
  }
}