/* ==============================================
   public.css — Shared styles for all public pages
   DanielaPelliccia.com
   ============================================== */

/* ---- Google Fonts ---- */
/* Note: font preconnect & import links should remain in each HTML <head>
   for optimal loading. This @import is a fallback if the <link> is missing. */

/* ---- CSS Variables (Brand) ---- */
:root {
  --brand-blue: #003DA5;
  --brand-blue-light: #0050d4;
  --brand-navy: #001a3a;
  --brand-red: #DC1431;
  --brand-gold: #C5A55A;
  --brand-green: #25D366;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --text-light: #999;
  --bg-page: #f0f2f5;
  --bg-card: #fff;
  --border-light: #dde1e7;
  --border-hover: #003DA5;
  --shadow-sm: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
}

/* ---- Top Bar / Header ---- */
.top-bar {
  background: var(--bg-card);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-nav {
  display: flex;
  gap: 0.2rem;
}

.top-bar-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.top-bar-nav a:hover,
.top-bar-nav a.active {
  background: #e8f0fe;
  color: var(--brand-blue);
  font-weight: 600;
}

/* Top bar agent avatar (homepage & some pages) */
.top-bar-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-agent img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--brand-blue);
  opacity: 0.55;
}

.top-bar-agent-info {
  display: flex;
  flex-direction: column;
}

.top-bar-agent-info .name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.top-bar-agent-info .title {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex;
  gap: 0.2rem;
}

.lang-btn {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.lang-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* ---- Mobile Menu / Hamburger ---- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--brand-blue);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 100;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: #e8f0fe;
  color: var(--brand-blue);
}

/* ---- Login Button (homepage top bar) ---- */
.login-trigger-btn {
  padding: 0.45rem 1rem;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.login-trigger-btn:hover {
  background: var(--brand-blue-light);
}

/* ---- Banner Hero (shared base — pages may override specifics) ---- */
.banner-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--brand-navy);
  height: 420px;
}

.banner-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.2rem;
  background: linear-gradient(to top, rgba(0,26,58,0.92) 0%, rgba(0,26,58,0.6) 40%, transparent 70%);
  text-align: center;
}

.banner-badge {
  display: inline-block;
  background: rgba(197,165,90,0.18);
  border: 1px solid rgba(197,165,90,0.45);
  border-radius: 100px;
  padding: 0.3rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.banner-overlay h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #E8DCC8;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.banner-overlay p {
  font-size: 0.9rem;
  color: #D4C08A;
  line-height: 1.5;
}

/* ---- Agent Strip (contact bar below content) ---- */
.agent-strip {
  max-width: 1060px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.agent-strip-inner {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.agent-strip-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--brand-blue);
  opacity: 0.5;
  flex-shrink: 0;
}

.agent-strip-info {
  flex-grow: 1;
}

.agent-strip-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.agent-strip-info p {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.1rem;
}

.agent-strip-links {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.agent-strip-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-blue);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.agent-strip-links a:hover {
  background: #f0f4ff;
  border-color: var(--brand-blue);
}

.agent-strip-links .em { color: var(--brand-red); }
.agent-strip-links .fb { color: #1877F2; }
.agent-strip-links .wa { color: var(--brand-green); }
.agent-strip-links .bl { color: var(--brand-blue); }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.footer a {
  color: var(--brand-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---- WhatsApp Floating Button ---- */
/* Two class names are used across pages: .whatsapp-float and .whatsapp-btn */
.whatsapp-float,
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: var(--brand-green);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 100;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}

.whatsapp-float:hover,
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(37,211,102,0.5);
}

.whatsapp-float svg,
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---- Spinner (used in forms across pages) ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==============================================
   Responsive — Shared Breakpoints
   ============================================== */

/* Tablet */
@media (max-width: 768px) {
  .agent-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .agent-strip-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .agent-strip-links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
  }

  .banner-overlay h1 {
    font-size: 1.4rem;
  }

  .banner-overlay p {
    font-size: 0.82rem;
  }

  .top-bar-nav a {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .top-bar {
    padding: 0.5rem 0.75rem;
    position: relative;
  }

  .top-bar-logo {
    font-size: 0.85rem;
  }

  .top-bar-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .top-bar-agent {
    display: none;
  }

  .lang-switcher {
    gap: 0.1rem;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .banner-hero {
    height: 300px;
  }

  .banner-overlay h1 {
    font-size: 1.2rem;
  }

  .banner-overlay p {
    font-size: 0.8rem;
  }
}
