/* =========================================================
   Wisam Photography — Every Moment Counts
   Palette: ivory / champagne-gold / espresso / dusty-blue
   Type: Fraunces (display) + Inter (body)
   ========================================================= */

:root {
  --ivory: #fbf8f2;
  --cream: #f3ebdd;
  --cream-deep: #ece0cd;
  --gold: #c2a06b;
  --gold-deep: #a8854e;
  --espresso: #342e2a;
  --espresso-soft: #6b625c;
  --blue: #9db2c4;
  --blue-deep: #6f8aa1;
  --white: #ffffff;
  --shadow-sm: 0 4px 18px rgba(52, 46, 42, 0.08);
  --shadow-md: 0 18px 50px rgba(52, 46, 42, 0.14);
  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--espresso);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Section rhythm */
section { padding: 110px 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.section-head p { margin-top: 18px; color: var(--espresso-soft); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: rgba(52,46,42,0.22); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-light { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn-light:hover { background: var(--white); color: var(--espresso); }
.btn-white { background: var(--white); color: var(--espresso); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 rgba(52,46,42,0.07);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color 0.4s var(--ease);
}
.nav-logo span { color: var(--gold); font-style: italic; }
.nav.scrolled .nav-logo { color: var(--espresso); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1.5px; background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--espresso-soft); }
.nav.scrolled .nav-links a:hover { color: var(--espresso); }
.nav-links .btn { padding: 11px 24px; }
.nav.scrolled .nav-links .btn-light { background: var(--gold); color: var(--white); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: all 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--espresso); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(52,46,42,0.45) 0%, rgba(52,46,42,0.25) 40%, rgba(52,46,42,0.65) 100%);
}
.hero-inner { max-width: 820px; }
.hero .eyebrow { color: rgba(255,255,255,0.9); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: 1.04;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p {
  margin: 26px auto 38px;
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ---------- Marquee strip ---------- */
.strip { background: var(--espresso); color: var(--ivory); padding: 26px 0; overflow: hidden; }
.strip-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 32s linear infinite; }
.strip-track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; opacity: 0.85;
  display: inline-flex; align-items: center; gap: 60px;
}
.strip-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px;
  display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52,46,42,0) 35%, rgba(52,46,42,0.82) 100%); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc-card:hover img { transform: scale(1.07); }
.svc-body { position: relative; z-index: 2; padding: 28px; }
.svc-body h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; }
.svc-body p { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.svc-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
}

/* ---------- Featured / masonry teaser ---------- */
.featured { background: var(--cream); }
.masonry { columns: 3; column-gap: 18px; }
.masonry .m-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; cursor: pointer; }
.masonry .m-item img { width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.masonry .m-item::after { content: ""; position: absolute; inset: 0; background: rgba(52,46,42,0); transition: background 0.4s var(--ease); }
.masonry .m-item:hover img { transform: scale(1.06); }
.masonry .m-item:hover::after { background: rgba(52,46,42,0.18); }
.featured-cta { text-align: center; margin-top: 54px; }

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-imgwrap { position: relative; }
.about-imgwrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.about-imgwrap::before {
  content: ""; position: absolute; inset: -16px -16px 24px 24px; border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg); z-index: -1;
}
.about-text h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 22px; }
.about-text p { color: var(--espresso-soft); margin-bottom: 18px; font-size: 1.05rem; }
.about-sign { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--gold-deep); margin-top: 8px; }

/* ---------- Why ---------- */
.why { background: var(--espresso); color: var(--ivory); }
.why .section-head h2 { color: var(--ivory); }
.why .section-head p { color: rgba(251,248,242,0.7); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 16px; }
.why-icon {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(194,160,107,0.15); border: 1px solid rgba(194,160,107,0.4);
}
.why-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.why-card h3 { color: var(--ivory); font-size: 1.25rem; margin-bottom: 10px; }
.why-card p { color: rgba(251,248,242,0.66); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testi { background: var(--cream); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card { background: var(--white); border-radius: var(--radius-lg); padding: 38px 32px; box-shadow: var(--shadow-sm); }
.testi-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }
.testi-card p { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--espresso); line-height: 1.5; margin-bottom: 20px; }
.testi-who { font-weight: 600; font-size: 0.92rem; }
.testi-who span { display: block; color: var(--espresso-soft); font-weight: 400; font-size: 0.82rem; }

/* ---------- Enquiry / contact ---------- */
.enquire { background: var(--ivory); }
.enquire-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.enquire-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.enquire-text > p { color: var(--espresso-soft); font-size: 1.06rem; margin-bottom: 36px; }
.quick-contact { display: flex; flex-direction: column; gap: 14px; }
.qc-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.qc-item:hover { transform: translateX(6px); }
.qc-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qc-ico svg { width: 20px; height: 20px; stroke: var(--gold-deep); fill: none; stroke-width: 1.7; }
.qc-item div strong { display: block; font-size: 0.98rem; }
.qc-item div span { font-size: 0.84rem; color: var(--espresso-soft); }

.enquire-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 7px; color: var(--espresso); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--cream-deep); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--espresso); background: var(--ivory);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.enquire-form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: var(--espresso-soft); text-align: center; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: rgba(251,248,242,0.7); padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(251,248,242,0.12); }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory); margin-bottom: 14px; }
.footer-logo span { color: var(--gold); font-style: italic; }
.footer-col h4 { color: var(--ivory); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(251,248,242,0.7); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }

/* ---------- Gallery page ---------- */
.gal-hero { background: var(--espresso); color: var(--ivory); padding: 150px 24px 70px; text-align: center; }
.gal-hero h1 { color: var(--ivory); font-size: clamp(2.4rem, 5vw, 3.8rem); }
.gal-hero h1 em { font-style: italic; color: var(--gold); }
.gal-hero p { color: rgba(251,248,242,0.72); margin-top: 16px; max-width: 520px; margin-inline: auto; }
.gal-main { background: var(--ivory); padding: 56px 0 110px; }
.filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 10px 22px; border-radius: 100px; border: 1.5px solid var(--cream-deep);
  background: transparent; color: var(--espresso-soft); cursor: pointer; transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--espresso); }
.filter-btn.active { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.gal-grid { columns: 3; column-gap: 18px; }
.gal-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; cursor: pointer; }
.gal-item img { width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.gal-item::after { content: ""; position: absolute; inset: 0; background: rgba(52,46,42,0); transition: background 0.4s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item:hover::after { background: rgba(52,46,42,0.16); }
.gal-item.hide { display: none; }
.gal-cta { text-align: center; margin-top: 70px; }
.gal-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.gal-cta p { color: var(--espresso-soft); margin-bottom: 28px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28,24,22,0.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lb-close { position: absolute; top: 26px; right: 34px; background: none; border: none; color: var(--ivory); font-size: 2.2rem; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: var(--ivory); width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background 0.3s; }
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 30px; }
.lb-next { right: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; color: var(--espresso); }
.mobile-menu .btn { font-family: var(--font-body); font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-imgwrap { max-width: 460px; margin: 0 auto; }
  .enquire-grid { grid-template-columns: 1fr; gap: 44px; }
  .testi-grid { grid-template-columns: 1fr; }
  .masonry, .gal-grid { columns: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Switch to hamburger before the desktop nav gets cramped */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .nav { padding: 18px 22px; }
  .nav.scrolled { padding: 12px 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .masonry, .gal-grid { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .enquire-form { padding: 28px 22px; }
  .hero p { font-size: 1.05rem; }
}
