@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(0, 0%, 12%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 12%);
    --primary: hsl(18, 100%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 20%, 96%);
    --secondary-foreground: hsl(0, 0%, 12%);
    --muted: hsl(210, 15%, 94%);
    --muted-foreground: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);
    --radius: 0.75rem;
    
    --gradient-primary: linear-gradient(135deg, hsl(18, 100%, 60%) 0%, hsl(0, 100%, 50%) 100%);
    --shadow-soft: 0 4px 20px -4px hsla(0, 0%, 0%, 0.08);
    --shadow-elevated: 0 20px 50px -12px hsla(18, 100%, 60%, 0.25);
    --shadow-card: 0 10px 40px -10px hsla(0, 0%, 0%, 0.1);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

#header, #header * {
    box-sizing: border-box;
}
#header a { text-decoration: none; color: inherit; }
#header button { border: none; background: none; cursor: pointer; }

/* ===== container ===== */
#header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all .4s cubic-bezier(0.4,0,0.2,1);
}

#header.scrolled {
  background: hsla(0,0%,100%,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -4px hsla(0,0%,0%,0.08);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== logo ===== */
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text { color: hsl(0,0%,12%); }

.logo-accent {
  background: linear-gradient(135deg, hsl(18,100%,60%) 0%, hsl(0,100%,50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== nav base ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: bold;
  color: hsl(0,0%,12%);
}

.nav-link:hover,
.nav-link.active { color: hsl(18,100%,60%); }

/* ===== submenu ===== */
.has-submenu { position: relative; }

.submenu-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform .3s ease;
}

/* desktop dropdown */
.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  box-shadow: 0 10px 40px -10px hsla(0,0%,0%,0.1);
  border-radius: .5rem;
  padding: .75rem 1rem;
  display: none;
  min-width: 120px;
}

.submenu a {
  display: block;
  padding: .4rem 0 .4rem 1rem;
  margin: 0.4rem 0;
  font-size: .875rem;
  border-radius: .5rem;
  border-left: 2px solid hsl(18,100%,60%);
}

.has-submenu.open .submenu { display: block; }
.has-submenu.open .dropdown-icon { transform: rotate(180deg); }

/* ===== CTA ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: .875rem;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(18,100%,60%) 0%, hsl(0,100%,50%) 100%);
  color: white ! important;
}

.btn-cta {
  display: block; 
  width : 100%;
  text-align: center;
}

@media (min-width:768px) {
  .btn-cta { display: inline-flex; }
}

/* ===== mobile layout ===== */
.mobile-menu-btn { display:none; }

@media (max-width:767px) {
  .mobile-menu-btn { display:block; }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -4px hsla(0,0%,0%,0.08);
  }

  .nav.open { display:flex; }

  /* mobile submenu style */
  .submenu {
    position: relative;
    box-shadow: none;
    padding: .5rem 0 0 .5rem;
    margin-top: .5rem;
  }
}

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