/*
  File: styles.css
  Purpose: Styling for Paris Privé single-page site.
  Notes:
    - Uses CSS variables for the requested palette.
    - Elegant typography: Playfair Display for headings, Inter for body.
    - Subtle transitions and hover effects.
*/

/* --------------------------
   Color variables
   -------------------------- */
:root {
  --dark-blue: #112250;
  --mid-blue: #3c507d;
  --gold: #e0c58f;
  --beige: #d9cbc2;
  --off-white: #f5f0e9;

  /* Accent & utility */
  --muted: rgba(17, 34, 80, 0.65);
  --glass: rgba(245, 240, 233, 0.85);

  /* Spacing scale */
  --sp-xs: 0.4rem;
  --sp-sm: 0.8rem;
  --sp: 1.2rem;
  --sp-md: 1.8rem;
  --sp-lg: 2.4rem;
  --max-width: 1100px;
}

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

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial;
  background: var(--off-white);
  color: var(--dark-blue);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-size: 16px;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--gold);
  color: var(--dark-blue);
  border-radius: 6px;
  text-decoration: none;
  z-index: 9999;
}

/* Container */
.container {
  width: calc(100% - 2rem);
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: var(--sp-lg) 0; */
  padding: var(--sp-md) 0;
}

/* Headings */
.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0 0 0.25rem 0;
  color: var(--off-white);
  letter-spacing: 0.02em;
  line-height: 1;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark-blue);
  margin: 0 0 var(--sp) 0;
}

/* Paragraphs */
.lead {
  max-width: 60ch;
  color: var(--mid-blue);
  font-weight: 300;
  margin: 0 0;
  /* margin: 0 0 var(--sp-lg) 0; */
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(17, 34, 80, 0.02),
    rgba(17, 34, 80, 0.02)
  );
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(17, 34, 80, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--dark-blue);
}
.logo svg {
  display: block;
}
.logotype {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--dark-blue);
  letter-spacing: 0.02em;
}

/* Navigation */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--mid-blue);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  transition: all 180ms ease;
}
.main-nav a:hover,
.main-nav a:focus {
  background: linear-gradient(
    90deg,
    rgba(224, 197, 143, 0.08),
    rgba(217, 203, 194, 0.04)
  );
  color: var(--dark-blue);
  transform: translateY(-2px);
}

/* --------------------------
   HERO
   -------------------------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--off-white);
  overflow: hidden;
  background-color: var(--dark-blue); /* fallback */
  padding: 1rem;
}

/* Decorative overlay and background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Soft vignette */
  background: radial-gradient(
    80% 60% at 20% 30%,
    transparent,
    rgba(0, 0, 0, 0.18)
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 34, 80, 0.35),
    rgba(17, 34, 80, 0.6)
  );
  z-index: 0;
}

/* Hero image (decorative) */
.hero-image {
  display: block;
  width: 42%;
  min-width: 320px;
  margin-left: auto;
  z-index: 1;
  opacity: 0.95;
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(17, 34, 80, 0.4);
  border: 1px solid rgba(245, 240, 233, 0.06);
}

/* Hero content layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 40%;
  /* gap: var(--sp-lg); */
  gap: var(--sp-md);
  align-items: center;
  z-index: 2;
  width: 100%;
  /* padding: var(--sp-lg) 0; */
  padding: var(--sp-md) 0;
}

/* Left column with copy */
.hero-left {
  max-width: 68ch;
}
.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 var(--sp) 0;
}
.hero-sub {
  font-size: 1rem;
  color: var(--off-white);
  /* margin-bottom: var(--sp-lg); */
  margin-bottom: var(--sp-md);
  opacity: 0.95;
}

/* Languages */

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  border: none;
}
.btn:focus {
  outline: 2px solid rgba(224, 197, 143, 0.28);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(
    180deg,
    rgba(224, 197, 143, 0.98),
    rgba(224, 197, 143, 0.94)
  );
  color: var(--dark-blue);
  box-shadow: 0 8px 24px rgba(17, 34, 80, 0.12);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 34, 80, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(245, 240, 233, 0.12);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.03);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* subtle tertiary for form */
.btn-tertiary {
  background: var(--beige);
  color: var(--dark-blue);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
}

.btn-pt {
  color: var(--gold);
}

/* --------------------------
   Sections
   -------------------------- */
.section {
  /* padding-top: calc(var(--sp-lg) * 1.2);
  padding-bottom: calc(var(--sp-lg) * 1.2); */
  padding-top: calc(var(--sp-md) * 1.2);
  padding-bottom: calc(var(--sp-md) * 1.2);
  background: transparent;
}

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: var(--sp);
}
.offer-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 240, 233, 0.95)
  );
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 6px 18px rgba(17, 34, 80, 0.06);
  border: 1px solid rgba(17, 34, 80, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.offer-card h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 0.5rem 0;
  color: var(--dark-blue);
}
.offer-card p {
  margin: 0;
  color: var(--mid-blue);
  font-size: 0.95rem;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 34, 80, 0.08);
}

/* --------------------------
   CONTACT
   -------------------------- */
.contact-inner {
  display: flex;
  /* gap: 2rem; */
  column-gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact-copy {
  max-width: 44ch;
  color: var(--mid-blue);
  margin-top: 0;
}
.contact-actions {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  flex-direction: column;
}

/* Mailto button with tiny visual flourish */
.btn-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark-blue);
  background: linear-gradient(
    180deg,
    var(--gold),
    color-mix(in srgb, var(--gold) 80%, white 20%)
  );
  box-shadow: 0 10px 30px rgba(17, 34, 80, 0.14);
  overflow: hidden;
}
.btn-mail .mail-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: translateX(-110%);
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.btn-mail.clicked .mail-anim {
  transform: translateX(120%);
}

/* Contact form (non-functional) */
.contact-form-disabled {
  display: none; /* Hides the non-functional form */
}

.contact-form {
  display: grid;
  gap: 0.6rem;
  width: 320px;
  max-width: 100%;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(17, 34, 80, 0.08);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  color: var(--dark-blue);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 6px 20px rgba(60, 80, 125, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.contact-phone-number {
  display: flex;
  gap: 0.1rem;
  align-items: center;
  /* color: var(--mid-blue); */
}

.contact-phone-number img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.form-note {
  font-size: 0.8rem;
  color: var(--mid-blue);
}

/* --------------------------
   FOOTER
   -------------------------- */
.site-footer {
  border-top: 1px solid rgba(17, 34, 80, 0.04);
  background: transparent;
}
.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  flex-wrap: wrap;
}
.site-footer small {
  display: block;
  color: var(--mid-blue);
  font-size: 0.85rem;
}
/* .footer-right a {
  color: var(--mid-blue);
  text-decoration: none;
  margin-left: 0.8rem;
  font-weight: 600;
}
.footer-right a:hover {
  text-decoration: underline;
} */

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.concierge-phone {
  color: var(--mid-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --------------------------
   Utilities & Responsiveness
   -------------------------- */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Layout adjustments for small screens */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1;
    width: 100%;
    min-width: 0;
    border-radius: 10px;
  }
  .hero-left {
    padding: 1rem 1rem;
  }
  .contact-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .header-inner {
    padding: 0.6rem 0;
  }
  .footer-right {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 0;
    flex-wrap: wrap;
  }
}

/* Subtle entrance animation for cards (prefers-reduced-motion respected) */
@media (prefers-reduced-motion: no-preference) {
  .offer-card {
    transform: translateY(6px);
    opacity: 0;
    animation: liftIn 700ms forwards ease-out;
  }
  .offer-card:nth-child(1) {
    animation-delay: 120ms;
  }
  .offer-card:nth-child(2) {
    animation-delay: 220ms;
  }
  .offer-card:nth-child(3) {
    animation-delay: 320ms;
  }
  .offer-card:nth-child(4) {
    animation-delay: 420ms;
  }
  .offer-card:nth-child(5) {
    animation-delay: 520ms;
  }

  @keyframes liftIn {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3) {
  .main-nav ul {
    gap: 0.2rem 0.5rem;
  }

  .main-nav a {
    padding: 0.45rem 0.2rem;
  }
}
