/* ==========================================================================
   SCOUT PHOTOGRAPHY — CAIRO, EGYPT
   Editorial & Luxury Photography Studio
   Warm ivory surfaces, plum typography, and Scout's purple accents.
   ========================================================================== */

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

:root {
  /* Brand Color Tokens */
  --sagat-purple: #75408f;
  --middle-red-purple: #270940;
  --purple-plumeria: #4b3a5a;
  --foxgloves: #675d69;
  --vega-violet: #79458f;
  --magnolia: #f2f0ff;
  --tristesse: #0d0917;
  --white: #2b2030;

  /* Surfaces & Backgrounds */
  --bg-primary: #faf7f2;
  --bg-secondary: #f1eaf0;
  --bg-surface: #fffdfb;
  --bg-surface-elevated: #f6eef6;
  --bg-glass: rgba(250, 247, 242, 0.86);

  --border-subtle: rgba(66, 42, 70, 0.13);
  --border-light: rgba(66, 42, 70, 0.25);
  --border-accent: rgba(121, 69, 143, 0.43);

  --text-main: #312637;
  --text-muted: #675d69;
  --text-dim: #6f6372;

  /* Gradients & Accents */
  --grad-primary: linear-gradient(135deg, #75408f 0%, #a36ab8 100%);
  --grad-subtle: linear-gradient(180deg, #f6eef6 0%, #faf7f2 100%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  /* Layout */
  --container-max: 1360px;
  --nav-height: 82px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 112px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vega-violet);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 4.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--foxgloves);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Editorial Minimalist Cards */
.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), transform var(--transition-smooth);
}

.editorial-card:hover {
  border-color: var(--border-accent);
}

/* Clean SVG Icon Utilities */
.svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 24px;
  height: 24px;
}

/* Buttons — Refined & Restrained */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: #75408f;
  color: #fffaf5;
}

.btn-primary:hover {
  background: #613477;
  color: #fffaf5;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--vega-violet);
  color: var(--white);
  background: rgba(177, 89, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--vega-violet);
  border: 1px solid rgba(177, 89, 255, 0.4);
}

.btn-outline:hover {
  background: var(--sagat-purple);
  color: #fffaf5;
  border-color: var(--sagat-purple);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.98);
  border-bottom-color: rgba(66, 42, 70, 0.18);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.brand-badge:hover {
  opacity: 0.95;
}

.brand-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.brand-city-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sagat-purple);
  text-transform: uppercase;
  border-left: 1px solid rgba(127, 49, 196, 0.25);
  padding-left: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--foxgloves);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--vega-violet);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--white);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--white);
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1100;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foxgloves);
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-link.active,
.drawer-link:hover {
  color: var(--vega-violet);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39, 29, 43, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #eee7ed;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--foxgloves);
  font-size: 0.92rem;
  margin: 18px 0 20px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: var(--foxgloves);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--foxgloves);
}

.footer-contact-items a {
  color: var(--white);
  transition: color var(--transition-fast);
}

.footer-contact-items a:hover {
  color: var(--vega-violet);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-dim);
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(35, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-xs);
  object-fit: contain;
  border: 1px solid var(--border-subtle);
}

.lightbox-caption {
  margin-top: 12px;
  color: #f0e8ed;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: transparent;
  border: none;
  color: #fffaf5;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }
  .nav-toggle-btn {
    display: flex;
  }
  .section {
    padding: 64px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Editorial details shared across the studio pages */

.section-header {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-subtitle {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag::before {
  content: '✦';
  margin-right: 12px;
  font-size: 0.65rem;
  vertical-align: 2px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.footer-links a,
.footer-contact-items {
  line-height: 1.8;
}

main > .section:first-child {
  background: radial-gradient(circle at 50% 100%, rgba(137, 76, 171, 0.12), transparent 48%);
}

main > .section:first-child .section-title {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.btn:focus-visible,
.nav-link:focus-visible,
.drawer-link:focus-visible,
.package-pill:focus-visible,
.filter-btn:focus-visible,
.gallery-card:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--vega-violet);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
