/* ==========================================================================
   SALTY COCONUT HAIR - Revised Refreshing Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-olive: #475033;
  --color-olive-dark: #373e28;
  --color-olive-light: #5d6844;
  
  --color-cream: #f0e3d2;
  --color-cream-light: #fcf9f5;
  --color-cream-dark: #dfd2c0;
  
  --color-gold: #b29570;
  --color-gold-light: #c8af8f;
  
  --color-charcoal: #1e221b;
  --color-white: #ffffff;
  --color-grey-light: #e5e8e1;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Alex Brush', cursive;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-subtle: 0 4px 30px rgba(71, 80, 51, 0.04);
  --shadow-medium: 0 10px 40px rgba(71, 80, 51, 0.08);
  --shadow-card: 0 20px 50px rgba(71, 80, 51, 0.06);
  
  --border-radius-sm: 4px;
  --border-radius-md: 10px;
  --border-radius-lg: 30px;
  --border-radius-full: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--border-radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.btn-call {
  background-color: var(--color-olive);
  color: var(--color-white);
  padding: 0.65rem 1.6rem;
  font-size: 0.85rem;
}

.btn-call:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
}

.btn-primary-olive {
  background-color: var(--color-olive);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(71, 80, 51, 0.15);
}

.btn-primary-olive:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(178, 149, 112, 0.3);
}

.inline-btn {
  align-self: flex-start;
  margin-top: 1rem;
}

/* --- Navigation Header --- */
.main-header {
  background-color: var(--color-cream-light);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(71, 80, 51, 0.06);
  padding: 0.8rem 0;
  transition: var(--transition-smooth);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-link {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header-logo-img:hover {
  transform: scale(1.05) rotate(5deg);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
}

/* Nav Menu Positioned Below logo in desktop layout */
.nav-menu {
  grid-row: 2;
  grid-column: 1 / span 3;
  margin-top: 0.6rem;
  justify-self: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-olive);
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-full);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link.active {
  background-color: var(--color-cream);
  color: var(--color-olive-dark);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--color-olive);
  transition: var(--transition-smooth);
}

/* --- Page Content Wrapper & SPA transitions --- */
.tab-section {
  display: none;
  position: relative;
  animation: fadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tab-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SVG Palm Leaf Watermarks --- */
.svg-watermark {
  position: absolute;
  width: 320px;
  height: 320px;
  color: var(--color-gold);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.wm-left {
  top: 5%;
  left: -50px;
  transform: rotate(45deg);
}

.wm-right {
  bottom: 5%;
  right: -50px;
  transform: rotate(-135deg);
}

.row-watermark {
  position: absolute;
  width: 250px;
  height: 250px;
  color: var(--color-gold);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.wm-right-row {
  top: 10%;
  right: 5%;
  transform: rotate(-45deg);
}

.wm-left-row {
  bottom: 10%;
  left: 5%;
  transform: rotate(135deg);
}

/* --- Elegant Hero Section (Redesigned) --- */
.elegant-hero {
  background-color: var(--color-cream);
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(71, 80, 51, 0.06);
}

.hero-small {
  min-height: 280px;
}

.elegant-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-primary-text {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  margin-bottom: 0.2rem;
}

.hero-secondary-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-olive);
  text-transform: uppercase;
}

.hero-wave {
  margin-top: 1.5rem;
  opacity: 0.8;
}

.about-hero-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-olive-dark);
  margin-top: 1.2rem;
  max-width: 600px;
}

/* --- Business Card Section (Redesigned) --- */
.business-card-section {
  padding: 6rem 0;
  background-color: var(--color-cream-light);
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}

.card-image-wrapper {
  background-color: var(--color-white);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(71, 80, 51, 0.05);
}

.card-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: calc(var(--border-radius-md) - 2px);
}

/* Luxury Business Card Styling */
.card-details-box {
  background-color: var(--color-white);
  border: 1px solid rgba(71, 80, 51, 0.08);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle leaf watermark inside card background */
.card-details-box::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,95 C50,95 53,70 50,15 M50,85 C56,79 78,74 83,72 M50,85 C44,79 22,74 17,72 M50,74 C58,66 82,61 87,58 M50,74 C42,66 18,61 13,58' stroke='%23b29570' stroke-width='0.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid var(--color-grey-light);
  padding-bottom: 1.5rem;
}

.card-logo-icon {
  width: 50px;
  height: auto;
}

.card-title {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--color-olive-dark);
  font-weight: 500;
}

.card-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  font-weight: 600;
}

.card-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card-detail-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.05rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.card-text {
  font-weight: 400;
}

.card-text a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* --- About Content Section --- */
.about-content-section {
  background-color: var(--color-cream-light);
  padding: 6rem 0;
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
  position: relative;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-row.row-reverse {
  direction: ltr;
}

.content-row.row-reverse .text-block {
  grid-column: 2;
}

.content-row.row-reverse .image-block {
  grid-column: 1;
  grid-row: 1;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  z-index: 2;
}

.text-block.center-text {
  text-align: center;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-olive-dark);
  position: relative;
}

.section-desc {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  font-weight: 300;
}

.section-desc-light {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  max-width: 500px;
  font-weight: 300;
}

.cursive-accent-text {
  font-family: var(--font-accent);
  font-size: 3.5rem;
  color: var(--color-olive);
  line-height: 1;
  margin-bottom: -0.5rem;
  letter-spacing: 0;
}

.gold-accent-frame {
  background-color: var(--color-white);
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-gold);
  position: relative;
  z-index: 2;
}

.gold-accent-frame.frame-rounded {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.gold-accent-frame.frame-rounded img {
  border-radius: calc(var(--border-radius-lg) - 4px);
}

.img-grayscale {
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.img-grayscale:hover {
  filter: grayscale(0%);
}

/* --- Gallery Grid Section --- */
.gallery-grid-section {
  background-color: var(--color-cream-light);
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(71, 80, 51, 0.05);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(71, 80, 51, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.zoom-icon {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 300;
  transform: scale(0.7);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

/* --- Contact Page Layout --- */
.contact-page-content {
  padding: 6rem 0;
  background-color: var(--color-cream-light);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: stretch;
}

.full-width-box {
  height: 100%;
}

.contact-right-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(71, 80, 51, 0.08);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

/* --- Business Hours Section --- */
.hours-content-section {
  background-color: var(--color-cream-light);
  padding: 6rem 0;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hours-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hours-title {
  font-size: 2.8rem;
  color: var(--color-olive-dark);
  font-family: var(--font-heading);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th, .hours-table td {
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(71, 80, 51, 0.1);
  font-size: 1.15rem;
  text-align: left;
}

.hours-table th {
  font-weight: 500;
  color: var(--color-olive-dark);
  font-family: var(--font-heading);
}

.hours-table td {
  text-align: right;
  font-weight: 400;
  color: var(--color-charcoal);
}

.hours-table tr:last-child th, .hours-table tr:last-child td {
  border-bottom: none;
}

.closed-row th, .closed-row td {
  color: var(--color-gold);
  font-style: italic;
}

.hours-image-wrapper {
  max-width: 500px;
}

.hours-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* --- Premium Forest Green Footer --- */
.global-footer {
  background-color: var(--color-olive);
  color: var(--color-white);
  padding: 6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Soft white palm leaf watermarks for footer */
.global-footer::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 250px;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,95 C50,95 53,70 50,15 M50,85 C56,79 78,74 83,72 M50,85 C44,79 22,74 17,72 M50,74 C58,66 82,61 87,58 M50,74 C42,66 18,61 13,58' stroke='white' stroke-width='0.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  gap: 5rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1); /* Turns dark green logo white */
}

.footer-logo-text {
  font-size: 2rem;
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-weight: 400;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  line-height: 1.2;
}

.footer-col h5 {
  font-size: 1rem;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-detail-with-icon {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.footer-icon {
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-mini-map-link {
  margin-top: 0.5rem;
}

.link-btn-gold {
  color: var(--color-cream);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  display: inline-block;
}

.link-btn-gold:hover {
  color: var(--color-gold-light);
  border-bottom-color: var(--color-white);
}

.footer-contact p a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 34, 27, 0.97);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-modal[aria-hidden="false"] {
  display: flex;
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 4px solid var(--color-cream);
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  animation: zoomIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  color: var(--color-cream);
  margin-top: 1.5rem;
  font-size: 1.25rem;
  text-align: center;
  font-family: var(--font-heading);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--color-cream-light);
  font-size: 3.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--color-gold-light);
  transform: scale(1.1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-cream-light);
  font-size: 3.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.lightbox-arrow:hover {
  color: var(--color-gold-light);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet Screens (under 992px) */
@media (max-width: 992px) {
  .header-container {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  
  .header-actions {
    display: none;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-cream-light);
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(71, 80, 51, 0.08);
    border-bottom: 1px solid rgba(71, 80, 51, 0.05);
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideDown 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }

  .mobile-toggle {
    display: block;
    grid-column: 2;
  }

  .logo-link {
    grid-column: 1;
    justify-self: start;
  }

  /* Grid Adjustments */
  .card-grid, .content-row, .hours-grid, .contact-page-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .content-row.row-reverse .text-block, 
  .content-row.row-reverse .image-block {
    grid-column: auto;
    grid-row: auto;
  }
  
  .hours-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hours-image {
    height: 400px;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }
  
  .footer-logo-img {
    align-self: center;
  }
}

/* Mobile Screens (under 600px) */
@media (max-width: 600px) {
  .hero-primary-text {
    font-size: 2.2rem;
  }

  .about-hero-quote {
    font-size: 1.1rem;
  }

  .card-details-box {
    padding: 1.8rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .cursive-accent-text {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hours-title {
    font-size: 2.2rem;
  }

  .hours-table th, .hours-table td {
    font-size: 1.05rem;
    padding: 1rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .lightbox-arrow {
    font-size: 2.2rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
}
