/* === Color Palette Variables === */
:root {
  --color-bg: #F2E5D9;
  --color-text: #30302E;
  --color-primary: #517B8B;
  --color-secondary: #2D3860;
  --color-accent: #FFCC01;
  --color-brown: #8A5204;
  --color-peach: #FAC2B0;
  --color-red: #E90026;
  --color-green: #005746;
}

/* === Google Font: Montserrat === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@1,300&display=swap');

html, body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Utility container for consistent layout */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
  z-index: 1200;
  min-height: 56px;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  background-color: var(--color-bg);
  padding: 2em 1em;
  gap: 2em;
}

.faq-section, .testimonials, .cta-banner, footer {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
}

/* === Header & Tagline === */
header {
  background-color: var(--color-peach);
  text-align: center;
  padding: 2.5em 1em 2em 1em;
  border-bottom: 4px solid var(--color-accent);
}
header h1 {
  font-family: 'Montserrat', cursive;
  font-size: 2.7rem;
  margin: 0;
  color: var(--color-secondary);
  letter-spacing: 1px;
}
.tagline {
  font-family: 'Zilla Slab', serif;
  font-size: 2rem;
  color: #9f4949;
  letter-spacing: 1.5px;
  margin: 1.2em 0;
  text-shadow: 0 2px 8px rgba(250,194,176,0.18);
  font-weight: 300;
  font-style: italic;
  text-align: center;
}

/* === Call to Action Buttons === */
.cta-button {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1em;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(255,204,1,0.08);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.cta-button:hover {
  background-color: var(--color-red);
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(233,0,38,0.12);
}

/* === Hero Section === */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  background-color: var(--color-bg);
  padding: 2em 1em;
  gap: 2em;
}
.hero-text {
  max-width: 500px;
  text-align: center;
  margin: 0 auto;
}

/* Desktop-specific centering for hero text */
@media (min-width: 768px) {
  .hero-text {
    text-align: center;
    margin: 0 auto;
  }
}
.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: var(--color-secondary);
}
.hero-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(45,56,96,0.10);
  border: 2px solid var(--color-peach);
  background: var(--color-bg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(45,56,96,0.18);
}

.logo-image {
  max-width: 180px;
  max-height: 72px;
  height: auto;
  display: block;
  margin: 0;
  vertical-align: middle;
  border-radius: 16px;
}
.logo {
  padding: 0.25em 0.5em 0.25em 0;
  display: flex;
  align-items: center;
}

/* === Gallery Grid (Portfolio Page) === */
.gallery {
  column-count: 3;
  column-gap: 20px;
  padding: 32px 20px;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(45,56,96,0.10);
  border: 2px solid var(--color-bg);
  background: var(--color-bg);
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(45,56,96,0.18);
}

/* === FAQ Section === */
.faq-section {
  padding: 2em 1em;
  background-color: var(--color-bg);
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
  margin: 2em 0;
}
.faq-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1em;
  color: var(--color-secondary);
}
.faq-section details {
  margin: 1em auto;
  max-width: 600px;
  background: var(--color-peach);
  padding: 1em;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
  border: 1px solid var(--color-accent);
  transition: background 0.3s, box-shadow 0.3s;
}
.faq-section details[open] {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(255,204,1,0.10);
}

/* === Pricing Grid Styles === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin: 2em 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tier {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 4px 16px rgba(45,56,96,0.08);
  border: 2px solid var(--color-peach);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  overflow: hidden;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,56,96,0.12);
}

.pricing-header {
  margin-bottom: 1em;
}

.pricing-header h4 {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

.price {
  display: block;
  font-size: 1.1rem;
  color: var(--color-brown);
  font-weight: 600;
  background: var(--color-accent);
  padding: 0.5em 1em;
  border-radius: 8px;
  margin: 0 auto;
  width: fit-content;
}

.pricing-image {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45,56,96,0.1);
  margin: 10px auto 0;
  display: block;
  object-fit: cover;
}

.pricing-description {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 1em 0 0 0;
  line-height: 1.4;
}

.pricing-note {
  text-align: center;
  font-style: italic;
  color: var(--color-brown);
  margin-top: 1.5em;
  font-size: 0.95rem;
}

/* === Testimonials === */
.testimonials {
  background-color: var(--color-peach);
  padding: 2em 1em;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
  margin: 2em 0;
}
.testimonials h3 {
  font-size: 1.75rem;
  margin-bottom: 1em;
  color: var(--color-secondary);
}
.testimonial {
  max-width: 600px;
  margin: auto;
  font-style: italic;
  color: var(--color-brown);
  background: var(--color-bg);
  border-radius: 8px;
  padding: 1em 2em;
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
}

/* === Call to Action Banner === */
.cta-banner {
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 2em 1em;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
  margin: 2em 0;
}
.cta-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5em;
  color: var(--color-bg);
}

/* === Footer === */
footer {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  text-align: center;
  padding: 1.5em 1em;
  font-size: 1rem;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 8px rgba(45,56,96,0.06);
}
footer a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 900px) {
  .container, .nav-container, .hero-section, .faq-section, .testimonials, .cta-banner, footer {
    max-width: 100vw;
    padding-left: 1em;
    padding-right: 1em;
  }
  .gallery {
    column-count: 3;
    padding: 16px 8px;
  }
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  .gallery {
    column-count: 3;
    padding: 8px 2px;
  }
  .faq-section, .testimonials, .cta-banner, footer {
    border-radius: 0;
    margin: 1em 0;
  }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    padding: 0.5em 0;
    overflow: visible;
  }
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  body {
    padding-top: 56px;
  }
  .nav-container {
    padding: 0;
    margin: 0;
    justify-content: space-between;
    overflow: visible;
    max-width: 100vw;
  }
  .hamburger {
    display: flex !important;
    position: relative;
    right: 0;
    margin-right: 0.75em;
  }
  .nav-links {
    right: 0;
    left: auto;
    width: 200px;
    min-width: 0;
    max-width: 95vw;
  }
  .logo-image {
    max-width: 180px;
    max-height: 72px;
  }
  .nav-links a {
    padding: 1em 1em;
  }
  footer a {
    font-size: 1.2em;
    padding: 0.5em 0;
    display: inline-block;
  }
}

.contact-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #9f4949;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

.portfolio-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #9f4949;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

.about-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #9f4949;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}

a, .cta-button, .nav-links a {
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
a:hover, .cta-button:hover, .nav-links a:hover {
  color: var(--color-red);
  background: var(--color-peach);
  box-shadow: 0 2px 8px rgba(250,194,176,0.18);
}
a:focus, .cta-button:focus, .nav-links a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.gallery img:hover, .gallery img:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(45,56,96,0.18);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: 10px;
  border: 1.5px solid #fad2ca;
  background: #fff8f5;
  box-shadow: 0 2px 8px rgba(250,194,176,0.10);
  font-size: 1rem;
  margin-top: 0.25em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  border-color: #9f4949;
  box-shadow: 0 2px 12px rgba(159,73,73,0.15);
  background: #fff0eb;
}

input[type="number"] {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: 10px;
  border: 1.5px solid #fad2ca;
  background: #fff8f5;
  box-shadow: 0 2px 8px rgba(250,194,176,0.10);
  font-size: 1rem;
  margin-top: 0.25em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input[type="number"]:focus {
  border-color: #9f4949;
  box-shadow: 0 2px 12px rgba(159,73,73,0.15);
  background: #fff0eb;
}

.contact-form-card {
  background: #fad2ca;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(159,73,73,0.10), 0 1.5px 0 #ffcc01 inset;
  border: 2.5px solid #fad2ca;
  padding: 2.5em 1.5em;
  max-width: 520px;
  margin: 2em auto;
  position: relative;
}
.contact-form-card label {
  color: #9f4949;
  font-family: 'Zilla Slab', serif;
  font-size: 1.08em;
  letter-spacing: 1px;
  margin-bottom: 0.25em;
  display: inline-block;
  position: relative;
}
.contact-form-card label::before {
  content: '✿ ';
  color: #ffcc01;
  font-size: 1em;
  position: relative;
  left: 0;
}
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card input[type="date"],
.contact-form-card select,
.contact-form-card textarea {
  margin-top: 0.25em;
  margin-bottom: 1.2em;
}

.about-card {
  background: #fad2ca;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(159,73,73,0.10), 0 1.5px 0 #ffcc01 inset;
  border: 2.5px solid #fad2ca;
  padding: 2.5em 1.5em;
  max-width: 520px;
  margin: 2em auto;
  position: relative;
}

.testimonial-carousel {
  position: relative;
  max-width: 520px;
  margin: 2em auto 0 auto;
  text-align: center;
}
.testimonial-slide {
  display: none;
  background: #fff8f5;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(159,73,73,0.08);
  padding: 2em 1.5em;
  min-height: 120px;
  transition: opacity 0.4s;
}
.testimonial-slide.active {
  display: block;
  opacity: 1;
}
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fad2ca;
  border: none;
  border-radius: 50%;
  width: 2.2em;
  height: 2.2em;
  font-size: 1.5em;
  color: #9f4949;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(159,73,73,0.10);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.testimonial-arrow.left { left: -1.5em; }
.testimonial-arrow.right { right: -1.5em; }
.testimonial-arrow:hover, .testimonial-arrow:focus {
  background: #ffcc01;
  color: #fff;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(48,48,46,0.85);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
#lightbox-overlay[style*="display: flex"] {
  display: flex !important;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  background: #fff;
  animation: popIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#floating-accent {
  display: none;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  padding-top: 80px;
}

nav {
  background-color: var(--color-primary);
  padding: 1em 2em;
  display: block;
  box-shadow: 0 2px 8px rgba(45,56,96,0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  min-height: 56px;
}
nav a {
  color: var(--color-bg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5em 1em;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
}
nav a:hover:not(.active) {
  color: var(--color-accent);
  background: var(--color-peach);
}
nav a.active {
  text-decoration: underline;
  color: var(--color-accent);
  background: transparent;
  border-radius: 4px;
  box-shadow: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1250;
  box-shadow: none;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 0;
}
.hamburger:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent) inset, 0 0 0 4px var(--color-peach);
}
.hamburger:hover, .hamburger.open {
  background: transparent;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 22px;
  background: var(--color-bg);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s cubic-bezier(.4,2,.6,1);
  box-shadow: none;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: var(--color-primary);
  width: 200px;
  padding: 0.5em 0.25em;
  box-shadow: 0 4px 12px rgba(45,56,96,0.10);
  z-index: 1000;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.nav-links.open {
  display: flex;
}
.nav-links a {
  width: 100%;
  padding: 0.75em 1em;
  font-size: 1.1rem;
  border-radius: 4px;
  box-sizing: border-box;
}

.nav-links a.active {
  background: var(--color-peach);
  color: var(--color-secondary);
  border-radius: 4px;
  text-decoration: underline;
  box-sizing: border-box;
}

.nav-container, .hero-section, .faq-section, .testimonials, .cta-banner, footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 1em;
}

@media (max-width: 600px) {
  .nav-container, .hero-section, .faq-section, .testimonials, .cta-banner, footer {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
  .logo-image {
    max-width: 160px;
    max-height: 64px;
  }
  .nav-container {
    padding: 0 1em;
    justify-content: space-between;
  }
  .hamburger {
    display: flex;
    position: relative;
    right: 0;
    margin-right: 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: var(--color-primary);
    width: 200px;
    padding: 0.5em 0.25em;
    box-shadow: 0 4px 12px rgba(45,56,96,0.10);
    z-index: 1000;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
  }
  
  /* Pricing grid responsive styles */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1em;
    margin: 1.5em 0;
  }
  
  .pricing-tier {
    padding: 1.2em;
  }
  
  .pricing-header h4 {
    font-size: 1.2rem;
  }
  
  .price {
    font-size: 1rem;
    padding: 0.4em 0.8em;
  }
  
  .pricing-image {
    max-width: 180px;
    width: 100%;
  }
  
  .pricing-description {
    font-size: 0.9rem;
  }
}
