/* 
  Theme Name: Hitesh Solanki - Private Photo Editor
  Author: Hitesh Solanki
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --bg-color: #faf9f6; /* Off-white / light beige */
  --white: #ffffff;
  --dark: #1f1d1d; /* Soft black */
  --text-dark: #333333;
  --text-muted: #707070;
  --border-light: #e0deda;
  --accent: #d2c8bc;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --spacing-sm: 2rem;
  --spacing-md: 5rem;
  --spacing-lg: 8rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.8;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

p, ul, ol, li, blockquote, .col-text, .footer-contact-info, .mobile-bio p {
  text-align: left;
}

.text-left { text-align: left !important; }

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.text-center { text-align: center !important; }
.text-center p,
.text-center li,
.text-center .subtitle,
.text-center .eyebrow,
.text-center h1,
.text-center h2,
.text-center h3,
.text-center h4,
.text-center h5,
.text-center h6,
.text-center .title-lg {
  text-align: center !important;
  text-align-last: center !important;
}
.text-left { text-align: left !important; }
.text-justify { text-align: justify !important; }
.italic { font-style: italic; }

/* Center entire website layout */
body {
  text-align: center;
}

/* All text left-aligned on all devices to avoid word spacing issues */
p, li, blockquote, span, div, a, h1, h2, h3, h4, h5, h6,
.col-text, .footer-contact-info, .mobile-bio p,
.service-description, .review-card p, .faq-answer,
.subtitle, .eyebrow, .title-lg, .nav-links a,
.footer-nav-inline a, .mobile-nav-grid a, .mobile-social a {
  text-align: left;
}

/* Keep buttons and nav centered */
.btn, .nav-links, .footer-nav-inline, .mobile-nav-grid, .mobile-social {
  text-align: center;
}

/* Mobile menu - left aligned */
.mobile-menu-overlay,
.mobile-menu-content,
.mobile-nav-grid,
.mobile-nav-grid a,
.mobile-social,
.mobile-social a,
.mobile-bio,
.mobile-bio p,
.menu-heading {
  text-align: left !important;
  text-align-last: left !important;
}

/* Logo text - centered */
.site-brand,
.site-title,
.site-description,
.header-logo {
  text-align: center !important;
  text-align-last: center !important;
}

.text-center { text-align: center; }
.italic { font-style: italic; }

.section-padding { padding: var(--spacing-lg) 0; }
.section-padding-sm { padding: var(--spacing-md) 0; }

.bg-white { background-color: var(--white); }
.bg-dark { 
  background-color: var(--dark); 
  color: var(--white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p { /* inherit color */
  color: var(--white);
}

.title-lg {
  font-size: 3.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem 0;
  background-color: var(--bg-color);
  width: 100%;
  z-index: 1000;
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  padding: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li a {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.active::after {
  width: 100%;
}

.site-brand {
  text-align: center;
  margin-top: 1.5rem;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.site-title {
  font-size: 1.8rem;
  letter-spacing: 0.35em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.site-description {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-header.scrolled .site-brand {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.site-title {
  font-size: 2.2rem;
  letter-spacing: 0.35em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.site-description {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hamburger menu (mobile) */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-image {
  flex: 1;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.hero-content {
  flex: 1;
  padding: 4rem;
  background-color: var(--white);
  max-width: 600px;
  margin-left: -5%;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

/* Home Hero Grid */
.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.home-hero-grid .grid-img-1 { padding-top: 4rem; }
.home-hero-grid .grid-img-3 { padding-top: 2rem; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-2.reverse .col-text {
  order: -1;
}

/* Editorial Gallery Custom CSS */
.editorial-gallery {
    width: 100%;
    margin: 4rem 0;
}
.editorial-row {
    margin-bottom: 4rem;
}
.editorial-row img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.img-large {
    height: 80vh; 
}
.img-portrait {
    aspect-ratio: 4/5;
}
.img-landscape {
    aspect-ratio: 16/9;
}
.img-square {
    aspect-ratio: 1/1;
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--dark);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--dark);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--dark);
  text-align: center;
}
.btn-outline:hover {
  background-color: var(--dark);
  color: var(--white);
}

/* Footer Styles - default alignment on desktop */
.site-footer {
    background-color: var(--bg-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-light);
    text-align: left;
}

.site-footer,
.site-footer p,
.site-footer a,
.site-footer h4,
.site-footer li,
.site-footer span,
.site-footer div,
.footer-contact-info,
.footer-contact-info p,
.footer-nav-inline,
.footer-nav-inline a,
.footer-middle-row,
.footer-top-row,
.footer-bottom-bar,
.footer-bottom-bar p {
  text-align: left;
}

.footer-bottom-bar {
  text-align: center;
}

.footer-bottom-bar p {
  text-align: center;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo-cursive {
    display: flex;
    align-items: center;
}

.footer-logo-cursive img {
    max-height: 30px;
    width: auto;
}

.footer-nav-inline {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-nav-inline a {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.footer-middle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-contact-info p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 3rem;
    max-width: 90%;
}

.footer-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.8;
}

.footer-gallery-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-2x2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.footer-2x2-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    justify-content: flex-end;
}

.footer-social-icons a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-bottom-bar p {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: 2rem;
    right: 5%;
  }
  
  .site-header {
    padding: 2rem 0;
  }
  
  .img-large {
    height: auto;
    aspect-ratio: 3/4;
  }
  
  .footer-top-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav-inline {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem !important;
  }
  .footer-middle-row {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  .footer-contact-info {
    text-align: center;
  }
  .footer-contact-info p {
    max-width: 100% !important;
  }
  .footer-gallery-block {
    align-items: center !important;
  }
  .footer-social-icons {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 5% !important;
  }

  .site-header .container {
    padding: 0 5% !important;
  }

  /* Site brand left aligned on mobile only */
  .site-brand {
    text-align: left !important;
    margin-top: 0.5rem !important;
  }

  .site-title {
    text-align: left !important;
    font-size: 1rem !important;
  }

  .site-description {
    text-align: left !important;
    display: block !important;
    font-size: 0.55rem !important;
  }

  .hero-content {
    margin-left: 0;
    margin-top: 0;
    padding: 2rem 5%;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-2 > .col-text { order: 2; }
  .grid-2 > .col-image,
  .grid-2 > .col-images { order: 1; }

  .home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: visible;
  }
  .home-hero-grid > div {
    padding-top: 0 !important;
  }
  .home-hero-grid .grid-img-1,
  .home-hero-grid .grid-img-2,
  .home-hero-grid .grid-img-3 {
    padding-top: 0 !important;
  }

  .footer-top-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 5% !important;
  }
  .footer-nav-inline { justify-content: center; gap: 1rem !important; }
  .footer-logo-cursive { margin-bottom: 0.5rem; }
  .footer-middle-row {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 5% !important;
  }
  .footer-bottom-bar {
    padding: 1.5rem 5% !important;
  }

  .section-padding { padding: 3rem 0 !important; }
  .title-lg { font-size: 1.8rem !important; }

  .site-header, .site-footer, section {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}



/* Before / After Slider */
.ba-container {
    max-width: 900px;
    margin: 0 auto 4rem auto;
}
.ba-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
}
.ba-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
.ba-wrapper .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.ba-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}
.ba-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.ba-handle i {
  color: #333;
  font-size: 14px;
}

/* Full-Screen Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 3000;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

.mobile-menu-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start !important;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    text-align: left !important;
    justify-items: start !important;
}

.mobile-nav-grid a, .mobile-social a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
    text-align: left !important;
    display: block;
}

.mobile-social {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left !important;
    align-items: flex-start !important;
}

.mobile-bio {
    margin-top: auto;
    padding-top: 3rem;
    text-align: left !important;
}

.mobile-bio p {
    text-align: left !important;
}

.menu-heading {
    text-align: left !important;
}


/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-middle-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-contact-info {
    text-align: center;
  }
  .footer-contact-info p {
    margin: 0 auto 1.5rem auto !important;
  }
  .footer-gallery-block {
    align-items: center !important;
  }
  .footer-social-icons {
    justify-content: center !important;
  }
}
@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-nav-inline { justify-content: center; gap: 1rem !important; }
  .footer-logo-cursive { margin-bottom: 0.5rem; }
  .footer-middle-row {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .footer-instagram-feed {
    align-items: center !important;
  }
  .footer-instagram-grid {
    margin: 0 auto !important;
  }
  .footer-social-icons {
    justify-content: center !important;
  }
  .footer-nav-inline {
    justify-content: center;
    gap: 1rem !important;
  }
  .footer-logo-cursive {
    margin-bottom: 0.5rem;
  }
  .footer-middle-row {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Fix text touching edges - add proper padding */
  .container {
    padding: 0 6% !important;
    overflow: hidden;
  }

  .site-header .container {
    padding: 0 6% !important;
  }

  .home-hero.container {
    padding: 0 6% !important;
  }

  section .container {
    padding: 0 6% !important;
  }

  /* Images should not overflow */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Grid images stack properly */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Keep images above text in 1-column layouts */
  .grid-2 > .col-text {
    order: 2;
  }
  .grid-2 > .col-image,
  .grid-2 > .col-images {
    order: 1;
  }

  /* Home Hero - 3 images visible side by side */
  .home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: visible;
  }
  .home-hero-grid > div {
    padding-top: 0 !important;
  }
  .home-hero-grid .grid-img-1,
  .home-hero-grid .grid-img-2,
  .home-hero-grid .grid-img-3 {
    padding-top: 0 !important;
  }

  /* Prevent any element from forcing extra width */
  .site-header, .site-footer, section {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Section padding on mobile */
  .section-padding {
    padding: 3rem 0 !important;
  }

  /* Title sizes on mobile */
  .title-lg {
    font-size: 1.8rem !important;
  }
}


/* Mobile Scroll Header Enhancements */
@media (max-width: 1024px) {
  .site-header.scrolled .site-brand {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
    text-align: left;
    padding-left: 0;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .site-header.scrolled .site-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    line-height: 1;
    text-align: left;
  }
  
  .site-header.scrolled .site-description {
    display: block;
    font-size: 0.55rem;
    text-align: left;
  }

  .site-header.scrolled .menu-toggle {
    top: 1.2rem;
    font-size: 1.2rem;
  }
  
  .site-header.scrolled .container {
    padding: 0;
  }

  /* Always show logo text on mobile, left aligned */
  .site-brand {
    text-align: left !important;
    max-height: 100px !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
  }

  .site-title {
    text-align: left !important;
    font-size: 1rem !important;
  }

  .site-description {
    text-align: left !important;
    display: block !important;
    font-size: 0.55rem !important;
  }
}


/* Mobile Menu Spacing Fixes */
.mobile-nav-grid {
    gap: 1rem !important;
}

.mobile-social {
    gap: 1rem !important;
}

.menu-heading {
    margin-bottom: 1.25rem !important;
}

.mobile-section {
    margin-bottom: 2rem !important;
}

.mobile-bio {
    padding-top: 1.5rem !important;
}

.mobile-bio p {
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
}

.mobile-menu-overlay {
    padding: 1.5rem !important;
}

.mobile-menu-header {
    margin-bottom: 1.5rem !important;
}
