/* ============================================================
   Dileep Diablo Photography — Custom Stylesheet
   Palette: cream #FAFAF8 | warm-cream #F5EEE3 | espresso #2C1810
             gold #C4954A | warm-brown #5C4033 | dark-bg #1A0F08
   ============================================================ */

/* ---------- Tailwind Custom Utility Overrides ------------- */
/* Tailwind CDN does not auto-generate extended config colors;
   define them explicitly here so all custom classes work.   */

/* Backgrounds */
.bg-cream        { background-color: #FAFAF8; }
.bg-warm-cream   { background-color: #F5EEE3; }
.bg-beige        { background-color: #EDE0CF; }
.bg-espresso     { background-color: #2C1810; }
.bg-warm-brown   { background-color: #5C4033; }
.bg-gold         { background-color: #C4954A; }
.bg-gold-light   { background-color: #E8D5A3; }
.bg-dark-bg      { background-color: #1A0F08; }
/* Opacity variants */
.bg-dark-bg\/50  { background-color: rgba(26,15,8,.5); }
.bg-dark-bg\/60  { background-color: rgba(26,15,8,.6); }
.bg-dark-bg\/70  { background-color: rgba(26,15,8,.7); }
.bg-dark-bg\/80  { background-color: rgba(26,15,8,.8); }
.from-dark-bg\/60 { --tw-gradient-from: rgba(26,15,8,.6); }
.from-dark-bg\/70 { --tw-gradient-from: rgba(26,15,8,.7); }
.via-dark-bg\/40  { --tw-gradient-via:  rgba(26,15,8,.4); }
.via-dark-bg\/50  { --tw-gradient-via:  rgba(26,15,8,.5); }
.to-dark-bg\/80   { --tw-gradient-to:   rgba(26,15,8,.8); }
.to-dark-bg\/90   { --tw-gradient-to:   rgba(26,15,8,.9); }

/* Text colors */
.text-espresso   { color: #2C1810; }
.text-warm-brown { color: #5C4033; }
.text-gold       { color: #C4954A; }
.text-gold-light { color: #E8D5A3; }
.text-cream      { color: #FAFAF8; }
.text-dark-bg    { color: #1A0F08; }
.text-beige      { color: #EDE0CF; }
/* Opacity variants */
.text-gold\/60   { color: rgba(196,149,74,.6); }
.text-gold\/40   { color: rgba(196,149,74,.4); }

/* Border colors */
.border-espresso   { border-color: #2C1810; }
.border-gold       { border-color: #C4954A; }
.border-gold-light { border-color: #E8D5A3; }
.border-beige      { border-color: #EDE0CF; }
.border-warm-cream { border-color: #F5EEE3; }
/* Opacity variants */
.border-gold\/30   { border-color: rgba(196,149,74,.3); }
.border-gold\/40   { border-color: rgba(196,149,74,.4); }
.border-gold\/60   { border-color: rgba(196,149,74,.6); }
.border-beige\/50  { border-color: rgba(237,224,207,.5); }

/* Ring colors */
.ring-gold  { --tw-ring-color: #C4954A; }

/* Font families */
.font-playfair  { font-family: 'Playfair Display', serif; }
.font-lato      { font-family: 'Lato', sans-serif; }
.font-cormorant { font-family: 'Cormorant Garamond', serif; }

/* Hover states needed for custom colors */
.hover\:bg-espresso:hover  { background-color: #2C1810; }
.hover\:bg-gold:hover      { background-color: #C4954A; }
.hover\:text-gold:hover    { color: #C4954A; }
.hover\:text-espresso:hover { color: #2C1810; }
.hover\:border-espresso:hover { border-color: #2C1810; }
.hover\:border-gold:hover  { border-color: #C4954A; }
.hover\:scale-105:hover    { transform: scale(1.05); }

/* Gradient custom colors */
.from-espresso { --tw-gradient-from: #2C1810; }
.via-espresso  { --tw-gradient-via:  #2C1810; }
.to-espresso   { --tw-gradient-to:   #2C1810; }

/* ---------- CSS Variables ---------------------------------- */
:root {
  --cream:        #FAFAF8;
  --warm-cream:   #F5EEE3;
  --beige:        #EDE0CF;
  --espresso:     #2C1810;
  --warm-brown:   #5C4033;
  --gold:         #C4954A;
  --gold-light:   #E8D5A3;
  --dark-bg:      #1A0F08;
  --transition:   0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Global ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background-color: var(--gold-light);
  color: var(--espresso);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--warm-cream); }
::-webkit-scrollbar-thumb  { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--espresso); }

/* ---------- Typography ------------------------------------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 1rem;
}
.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.2;
}

.section-subheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  color: var(--warm-brown);
  line-height: 1.7;
}

/* ---------- Buttons ---------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: var(--gold);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--espresso);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,24,16,.25);
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: transparent;
  color: var(--espresso);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--espresso);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: var(--espresso);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  background: transparent;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.5);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-nav {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  transition: all var(--transition);
}

/* ---------- Navbar ----------------------------------------- */
#site-header {
  will-change: background, box-shadow;
}

/* Transparent (over hero) */
.nav-transparent {
  background: transparent;
  box-shadow: none;
}
.nav-transparent .nav-link        { color: rgba(255,255,255,.85); }
.nav-transparent .nav-link:hover  { color: var(--gold-light); }
.nav-transparent .nav-link-active { color: var(--gold-light); }
.nav-transparent .nav-logo-text   { color: #fff; }
.nav-transparent .nav-logo-circle { border-color: rgba(255,255,255,.7); color: #fff; }
.nav-transparent .nav-cta         { color: rgba(255,255,255,.8); }
.nav-transparent .nav-ham         { background-color: #fff !important; }
.nav-transparent .btn-nav         {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.nav-transparent .btn-nav:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
}

/* Solid (scrolled) */
.nav-solid {
  background: var(--cream);
  box-shadow: 0 2px 24px rgba(44,24,16,.09);
}
.nav-solid .nav-link        { color: var(--warm-brown); }
.nav-solid .nav-link:hover  { color: var(--gold); }
.nav-solid .nav-link-active { color: var(--gold); }
.nav-solid .nav-logo-text   { color: var(--espresso); }
.nav-solid .nav-logo-circle { border-color: var(--espresso); color: var(--espresso); }
.nav-solid .nav-cta         { color: var(--warm-brown); }
.nav-solid .nav-ham         { background-color: var(--espresso) !important; }
.nav-solid .btn-nav         {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.nav-solid .btn-nav:hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

/* Nav link underline hover */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
  margin-top: 2px;
}
.nav-link:hover::after, .nav-link-active::after { width: 100%; }

/* Hamburger open state */
#hamburger.is-open .ham-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#hamburger.is-open .ham-line:nth-child(2) { opacity: 0; transform: translateX(-8px); }
#hamburger.is-open .ham-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu states */
.mobile-menu-closed { max-height: 0; }
.mobile-menu-open   { max-height: 520px; }

/* ---------- Hero ------------------------------------------- */
.hero-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
}

/* ---------- Portfolio Grid --------------------------------- */
.portfolio-item {
  overflow: hidden;
  position: relative;
}
.portfolio-item img {
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Portfolio filter */
.filter-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--beige);
  color: var(--warm-brown);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

/* ---------- Service Cards ---------------------------------- */
.service-card {
  background: var(--cream);
  border: 1px solid var(--beige);
  padding: 2.5rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(44,24,16,.1);
  transform: translateY(-6px);
  border-color: var(--gold-light);
}
.service-card .service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--warm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold);
  color: #fff;
}

/* ---------- Testimonial Cards ------------------------------ */
.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--beige);
  padding: 2.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold-light);
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
}

/* ---------- Section Divider -------------------------------- */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0;
}
.divider-ornament span:first-child,
.divider-ornament span:last-child {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}
.divider-ornament .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Stats ------------------------------------------ */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  /* color set via text-* utility class in HTML */
}

/* ---------- Contact Form ----------------------------------- */
.form-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--beige);
  background: transparent;
  padding: 0.75rem 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--warm-brown);
  outline: none;
  transition: border-color var(--transition);
}
.form-input::placeholder { color: var(--beige); }
.form-input:focus        { border-color: var(--gold); }
.form-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-brown);
  display: block;
  margin-bottom: 0.35rem;
}

/* ---------- Page Hero (inner pages) ------------------------ */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
  background: var(--warm-cream);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

/* ---------- Footer ----------------------------------------- */
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.footer-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold); }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Scroll-reveal animations ----------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* Back to top */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Overlay loading for portfolio images */
.portfolio-item img { display: block; }

/* Instagram grid hover */
.insta-item { overflow: hidden; position: relative; aspect-ratio: 1; }
.insta-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.insta-item:hover img { transform: scale(1.1); }
.insta-item .insta-overlay {
  position: absolute; inset: 0;
  background: rgba(44,24,16,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.insta-item:hover .insta-overlay { opacity: 1; }
