/* ============================================================
   SEPTEM-H7 — Luxury Immigration Consultancy
   Palette: Deep Navy (#0B1A2E), Gold (#C9A84C), Ivory (#F5F0E8)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:       #0B1A2E;
  --navy-mid:   #122236;
  --navy-light: #1A3352;
  --gold:       #C9A84C;
  --gold-light: #E2C97A;
  --gold-dim:   #8A6E2F;
  --ivory:      #F5F0E8;
  --ivory-dim:  #DDD5C3;
  --white:      #FFFFFF;
  --text-body:  #C8C0B0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 4px 32px rgba(201, 168, 76, 0.18);
  --shadow-deep: 0 8px 48px rgba(0, 0, 0, 0.45);
}

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

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

body {
  background-color: var(--navy);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle grain overlay */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(26,51,82,0.8) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

main {
  flex: 1;
}

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

a:hover {
  color: var(--gold-light);
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 500; }

p {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

/* ---- Gold Divider ---- */
.gold-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.gold-divider.left {
  margin-left: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 3rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(11,26,46,0.98) 0%, rgba(11,26,46,0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(11,26,46,0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ivory) !important;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.navbar-brand span {
  color: var(--gold);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding-bottom: 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--gold-light);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-cta {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  border: 1px solid rgba(201,168,76,0.5) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 2px;
  transition: all var(--transition) !important;
}

.navbar-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
}

.navbar-cta::after {
  display: none !important;
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 3rem 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(26,51,82,0.6) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative corner ornaments */
.hero::after {
  content: '';
  position: absolute;
  top: 100px;
  left: 3rem;
  width: 120px;
  height: 120px;
  border-top: 1px solid rgba(201,168,76,0.3);
  border-left: 1px solid rgba(201,168,76,0.3);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero h1 strong {
  font-style: normal;
  font-weight: 600;
  display: block;
  color: var(--gold);
  font-size: 0.55em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--ivory-dim);
  margin: 1.5rem 0 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: 0 6px 28px rgba(201,168,76,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  border: 1px solid rgba(245,240,232,0.35);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
  transform: translateY(-2px);
}

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  border: 1px solid rgba(201,168,76,0.5);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-whatsapp:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  padding: 160px 3rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-header h1 {
  font-style: italic;
  font-weight: 300;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 100px 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-intro {
  max-width: 620px;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ============================================================
   ABOUT / TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.team-card {
  text-align: center;
  position: relative;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--navy-light);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
}

.team-photo-placeholder {
  font-size: 3rem;
  color: rgba(201,168,76,0.3);
}

.team-card h3 {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 4rem;
  background: rgba(201,168,76,0.08);
}

.service-card {
  background: var(--navy);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s ease;
}

.service-card:hover {
  background: var(--navy-mid);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--gold);
  opacity: 0.85;
}

.service-card h3 {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  line-height: 1.9;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
}

.form-control {
  width: 100%;
  background: rgba(26,51,82,0.4);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.85rem 1.1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: rgba(201,168,76,0.55);
  background: rgba(26,51,82,0.6);
}

.form-control::placeholder {
  color: rgba(200,192,176,0.4);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background: var(--navy-mid);
  color: var(--ivory);
}

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

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

/* ============================================================
   EU LEGAL PAGES
   ============================================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 3rem 80px;
}

.legal-content h1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--gold-light);
}

.legal-content p,
.legal-content li {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

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

.legal-content address {
  font-style: normal;
  line-height: 2;
  font-size: 0.88rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(6,14,26,0.98);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,240,232,0.07);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.footer-brand span {
  color: var(--gold);
}

.footer-desc {
  font-size: 0.8rem;
  color: rgba(200,192,176,0.6);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(200,192,176,0.65);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(200,192,176,0.4);
  letter-spacing: 0.05em;
}

.footer-legal-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.72rem;
  color: rgba(200,192,176,0.45);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

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

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11,26,46,0.97);
  border-top: 1px solid rgba(201,168,76,0.25);
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

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

.cookie-banner p {
  font-size: 0.8rem;
  color: var(--text-body);
  flex: 1;
  min-width: 260px;
}

.cookie-banner p a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--gold-light);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(200,192,176,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cookie-decline:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0 3rem;
}

.flash {
  padding: 1rem 1.5rem;
  border-radius: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.flash.success {
  background: rgba(78,160,100,0.15);
  border: 1px solid rgba(78,160,100,0.4);
  color: #7bc98a;
}

.flash.error {
  background: rgba(200,70,70,0.15);
  border: 1px solid rgba(200,70,70,0.4);
  color: #e08080;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-top .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(11,26,46,0.99);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero, .page-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding: 60px 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    padding: 1.2rem 1.5rem;
  }

  .legal-content {
    padding: 120px 1.5rem 60px;
  }
}
