/* SM Home & Living — Estilos Globais
   Cores: #011B34 (primary), #C9A84C (gold), #E8EDF5 (azure), #F5F0E8 (beige)
   Fontes: Playfair Display (headings), Inter (body)
*/

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #011B34;
  --color-primary-light: #0A2E4A;
  --color-primary-dark: #00101F;
  --color-gold: #C9A84C;
  --color-gold-light: #D4B96A;
  --color-gold-dark: #B89430;
  --color-azure: #E8EDF5;
  --color-azure-dark: #D0D8E8;
  --color-beige: #F5F0E8;
  --color-beige-dark: #E8DFD0;
  --color-white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 88rem;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: rgba(1, 27, 52, 0.7);
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-subtitle { font-size: 1.25rem; }
}

.text-center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-gold-dark);
}

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

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

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.3s ease;
}

.header.scrolled .header-inner {
  height: 60px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.header.scrolled .logo-circle {
  width: 40px;
  height: 40px;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.25rem;
  transition: font-size 0.3s ease;
}

@media (max-width: 480px) {
  .logo-text { font-size: 1rem; }
}

.header.scrolled .logo-text {
  font-size: 1.125rem;
}

/* Desktop Nav */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(1, 27, 52, 0.8);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-azure);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher — Globe + Dropdown */
.lang-switcher {
  position: relative;
}

.lang-globe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.2s ease;
}

.lang-globe-btn:hover {
  background: rgba(232, 237, 245, 0.5);
}

.globe-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 100;
  overflow: hidden;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: background 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--color-azure);
}

.lang-option.active {
  background: var(--color-primary);
  color: var(--color-white);
  cursor: default;
}

.lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(232, 237, 245, 0.5);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-azure);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.nav-mobile .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,27,52,0.88), rgba(10,46,74,0.75)),
              url('../images/hero-bg.svg') center/cover no-repeat;
  background-color: var(--color-primary);
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  background: var(--color-gold);
  border-radius: 50%;
  filter: blur(6rem);
  opacity: 0.1;
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: var(--color-gold);
  border-radius: 50%;
  filter: blur(6rem);
  opacity: 0.08;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.25rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(232, 237, 245, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .card { padding: 2rem; }
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Section Backgrounds ===== */
.bg-azure { background: var(--color-azure); }
.bg-beige { background: var(--color-beige); }
.bg-primary { background: var(--color-primary); }
.bg-white { background: var(--color-white); }

.text-white { color: var(--color-white); }
.text-gold { color: var(--color-gold); }
.text-primary { color: var(--color-primary); }

/* ===== Relocation Detail ===== */
.relocation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .relocation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ===== Character Counter ===== */
.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(1, 27, 52, 0.5);
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.char-counter.warning {
  color: #d97706;
}

.char-counter.danger {
  color: #dc2626;
}

[dir="rtl"] .char-counter {
  text-align: left;
}

/* ===== Checkbox Label ===== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-hint {
  font-size: 0.8rem;
  color: rgba(1, 27, 52, 0.5);
  margin-top: 0.25rem;
  margin-left: 1.625rem;
}

.gdpr-details {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(1, 27, 52, 0.03);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-gold);
}

.gdpr-details .checkbox-hint {
  margin-top: 0.15rem;
  margin-left: 0;
  font-size: 0.75rem;
}

/* GDPR Consent — Momento 1 */
.gdpr-consent {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(1, 27, 52, 0.03);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-gold);
}

.gdpr-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.gdpr-checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.gdpr-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text);
}

.gdpr-checkbox-text span {
  display: block;
}

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-azure-dark);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-white);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

/* ===== Country Code Picker ===== */
.phone-input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.country-code-wrapper {
  position: relative;
  flex-shrink: 0;
}

.country-code-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 0.625rem;
  border: 1px solid var(--color-azure-dark);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  background: var(--color-azure);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
  white-space: nowrap;
}

.country-code-btn:hover {
  background: var(--color-azure-dark);
}

.country-code-btn:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-code-display {
  font-weight: 600;
  font-size: 0.875rem;
}

.country-chevron {
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.country-code-btn[aria-expanded="true"] .country-chevron {
  transform: rotate(180deg);
}

.country-code-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  max-height: 320px;
  background: var(--color-white);
  border: 1px solid var(--color-azure-dark);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(1, 27, 52, 0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.country-search-wrapper {
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-azure-dark);
  flex-shrink: 0;
}

.country-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-azure-dark);
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-primary);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.country-search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.country-list {
  overflow-y: auto;
  flex: 1;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.country-option:hover {
  background: var(--color-azure);
}

.country-option.selected {
  background: var(--color-azure);
  font-weight: 600;
}

.country-option-flag {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

.country-option-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-option-code {
  color: var(--color-primary-light);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  min-width: 0;
}

/* RTL overrides for Country Code Picker */
[dir="rtl"] .country-code-btn {
  border-right: 1px solid var(--color-azure-dark);
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
}

[dir="rtl"] .phone-input {
  border-radius: 0.5rem 0 0 0.5rem !important;
}

[dir="rtl"] .country-code-dropdown {
  left: auto;
  right: 0;
}

[dir="rtl"] .country-option {
  text-align: right;
}

[dir="rtl"] .country-option-code {
  margin-right: auto;
  margin-left: 0;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-azure);
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.contact-item:hover {
  background: var(--color-azure-dark);
}

.contact-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== Cookie Consent ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem;
  animation: slideUp 0.4s ease-out;
}

.cookie-inner {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-azure);
  padding: 1.5rem;
}

.cookie-text {
  margin-bottom: 1rem;
}

.cookie-text h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.875rem;
  color: rgba(1, 27, 52, 0.7);
}

.cookie-policy-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-gold);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.cookie-policy-link:hover {
  opacity: 0.8;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-azure);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.cookie-btn-primary {
  background: var(--color-gold);
  color: white;
  border-color: var(--color-gold);
}

.cookie-btn-primary:hover {
  background: var(--color-gold-dark);
}

.cookie-btn-secondary {
  background: transparent;
  color: rgba(1, 27, 52, 0.7);
}

.cookie-btn-secondary:hover {
  background: var(--color-azure);
  color: var(--color-primary);
}

/* ===== Success Message ===== */
.success-msg {
  display: none;
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  text-align: center;
  color: #065f46;
  font-weight: 500;
}

.success-msg.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Gap Helpers ===== */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  text-align: center;
  padding: 5rem 1rem;
}

/* ===== Páginas Legais ===== */
.header-legal {
  position: relative;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(1, 27, 52, 0.08);
}

.header-legal .logo-circle {
  width: 40px;
  height: 40px;
}

.header-legal .logo-text {
  font-size: 1rem;
}

.legal-page {
  padding: 3rem 1rem 4rem;
  background: var(--color-white);
  min-height: 60vh;
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-update {
  font-size: 0.875rem;
  color: var(--color-primary);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.legal-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-azure);
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-gold);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
}

.legal-section p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.legal-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--color-primary);
  opacity: 0.85;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

.legal-list li ul {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-list li ul li {
  padding-left: 0;
}

.legal-list li ul li::before {
  display: none;
}

.legal-pending {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  background: #FFF3CD;
  color: #856404;
  border-radius: 4px;
  border: 1px dashed #FFC107;
}

.legal-note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-beige);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-primary);
  opacity: 0.85;
  border-left: 4px solid var(--color-gold);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.legal-table thead th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.legal-table thead th:last-child {
  border-radius: 0 0.5rem 0 0;
}

.legal-table tbody td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-azure-dark);
  vertical-align: top;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:nth-child(even) {
  background: var(--color-azure);
}

.legal-table code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: var(--color-azure-dark);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-azure-dark);
}

.legal-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-azure);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-nav-link:hover {
  background: var(--color-gold-light);
  color: var(--color-white);
}

.legal-nav-link.active {
  background: var(--color-gold);
  color: var(--color-white);
}

@media (max-width: 640px) {
  .legal-title {
    font-size: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.15rem;
  }

  .legal-page {
    padding: 2rem 1rem 3rem;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table thead th,
  .legal-table tbody td {
    padding: 0.5rem;
  }

  .legal-nav {
    gap: 0.4rem;
  }

  .legal-nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (min-width: 768px) {
  .cta-section { padding: 7rem 1rem; }
}

/* ===== Visually Hidden (a11y) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Profile Image (Sobre section) ===== */
.profile-image {
  max-width: 480px;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== MÁLAGA ICON CARDS GRID ===== */
.malaga-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .malaga-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .malaga-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.malaga-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-beige-dark);
  box-shadow: 0 4px 12px rgba(1, 27, 52, 0.04);
}

.malaga-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(1, 27, 52, 0.1);
  border-color: var(--color-gold);
}

.malaga-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-beige);
}

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

.malaga-card:hover .malaga-card-img img {
  transform: scale(1.05);
}

.malaga-card-body {
  padding: 1.5rem 1.25rem 1.75rem;
}

.malaga-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

.malaga-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.malaga-card-desc {
  font-size: 0.9rem;
  color: rgba(1, 27, 52, 0.7);
  line-height: 1.6;
}

/* ===== SERVICE CARD MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(1, 27, 52, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.2s ease;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(1, 27, 52, 0.2);
  animation: modalSlideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-azure);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--color-gold);
  color: #fff;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: rgba(1, 27, 52, 0.6);
  margin-bottom: 1.5rem;
}

.modal-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.modal-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(1, 27, 52, 0.75);
  line-height: 1.5;
  font-size: 0.95rem;
}

.modal-body li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-cta {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 1rem;
}

.modal-cta:hover {
  background: #b8942e;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Card service link / button to open modal */
.card-saiba-mais {
  display: inline-block;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

.card-saiba-mais:hover {
  color: #b8942e;
  text-decoration: underline;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-azure);
}

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

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 768px) {
  .card-body { padding: 2rem; }
}

/* Card subtitle (service packages) */
.card-subtitle {
  font-size: 0.9rem;
  color: rgba(1, 27, 52, 0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Card feature list (service packages) */
.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.card-list li {
  font-size: 0.875rem;
  color: rgba(1, 27, 52, 0.75);
  line-height: 1.6;
  padding: 0.2rem 0;
}

/* Card footer note (service packages) */
.card-footer {
  font-size: 0.8rem;
  color: rgba(1, 27, 52, 0.55);
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-azure-dark);
}

/* Modal top image (above title) — substitui .modal-img */
.modal-top-img {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.5rem -2rem;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--color-azure);
  border-radius: 20px 20px 0 0;
}

.modal-top-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal footer note */
.modal-footer-note {
  font-size: 0.85rem;
  color: rgba(1, 27, 52, 0.55);
  line-height: 1.5;
  margin: 1rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-azure-dark);
}

/* ===== FAQ Accordion ===== */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-azure-dark);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--color-gold);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.faq-question:hover {
  background: var(--color-azure);
}

.faq-question[aria-expanded="true"],
.faq-item.active .faq-question {
  background: var(--color-azure);
  color: var(--color-gold);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

.faq-question[aria-expanded="true"] .faq-icon,
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: rgba(1, 27, 52, 0.75);
  line-height: 1.7;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  padding: 0.5rem 0;
}

/* RTL override for FAQ */
[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .faq-question svg {
  order: -1;
}

/* ===== Diferenciais Grid ===== */
.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .diferenciais-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.diferencial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.diferencial-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.diferencial-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.diferencial-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.diferencial-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* RTL override */
[dir="rtl"] .diferencial-card {
  text-align: center;
}

/* ===== Contact SVG Icons ===== */
.contact-icon {
  flex-shrink: 0;
  color: var(--color-gold);
}

.contact-item:hover .contact-icon {
  color: var(--color-gold-dark);
  transition: color 0.2s ease;
}

/* ===== RTL (Arabic) Overrides ===== */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .modal-title {
  padding-right: 0;
  padding-left: 2rem;
}

[dir="rtl"] .modal-body li::before {
  margin-left: 0.75rem;
  margin-right: 0;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

[dir="rtl"] .contact-item {
  flex-direction: row;
}

[dir="rtl"] .legal-list li {
  padding: 0.35rem 1.25rem 0.35rem 0;
}

[dir="rtl"] .legal-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .legal-list li ul {
  padding-left: 0;
  padding-right: 1.25rem;
}

[dir="rtl"] .legal-intro {
  border-left: none;
  border-right: 4px solid var(--color-gold);
}

[dir="rtl"] .legal-note {
  border-left: none;
  border-right: 4px solid var(--color-gold);
}

[dir="rtl"] .legal-table thead th {
  text-align: right;
}

[dir="rtl"] .legal-table thead th:first-child {
  border-radius: 0 0.5rem 0 0;
}

[dir="rtl"] .legal-table thead th:last-child {
  border-radius: 0.5rem 0 0 0;
}

[dir="rtl"] .footer-inner {
  text-align: right;
}

[dir="rtl"] .nav-link {
  text-align: right;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
  font-family: 'Tajawal', var(--font-body);
}

/* Arabic font for body when in RTL mode */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] .form-label,
[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea,
[dir="rtl"] .footer-copy,
[dir="rtl"] .footer-links a,
[dir="rtl"] .cookie-text p,
[dir="rtl"] .cookie-btn,
[dir="rtl"] .lang-option,
[dir="rtl"] .nav-link,
[dir="rtl"] .legal-page p,
[dir="rtl"] .legal-list li,
[dir="rtl"] .legal-intro,
[dir="rtl"] .legal-note {
  font-family: 'Tajawal', var(--font-body);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .modal-title,
[dir="rtl"] .modal-body h4,
[dir="rtl"] .malaga-card-title,
[dir="rtl"] .legal-section h2,
[dir="rtl"] .legal-title {
  font-family: 'Tajawal', var(--font-heading);
}

[dir="rtl"] .checkbox-hint {
  margin-left: 0;
  margin-right: 1.625rem;
}

[dir="rtl"] .gdpr-details {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

[dir="rtl"] .gdpr-consent {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

[dir="rtl"] .gdpr-checkbox-label {
  flex-direction: row-reverse;
}
