:root {
  --color-white: #FFFFFF;
  --color-cream: #F9F7F2;
  /* Warm, light cream */
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-text-content: #4a4a4a;
  --color-accent: #E0C097;
  /* Soft gold/beige accent */
  --color-copper: #A66528;
  /* Derived from reference image subtitle */
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

html {
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.6;
  display: block;
}

p,
li {
  font-size: 1.1rem;
  color: #444;
  margin-top: 0px;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Contact labels - reduced spacing */
.contact-labels p {
  margin-bottom: 0.1rem;
  height: auto;
  line-height: 1.2;
}

/* Navigation */
header {
  background-color: var(--color-white);
  padding: 1rem 0;
  border-bottom: 1px solid #EAEAEA;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.logo img {
  height: 60px;
  /* Adjustable based on actual logo aspect ratio */
  width: auto;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--color-text-main);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

.nav-menu a.active {
  text-decoration: underline;
}

/* Common Components */
.btn-main {
  display: inline-block;
  background-color: rgba(225, 97, 93, 1);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.btn-main:hover {
  background-color: rgb(219, 60, 54);
}

.banner {
  height: 280px;
  /* Reduced by 30% from 400px */
  background-color: #f0f0f0;
  /* Fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Text aligned to left */
  text-align: left;
  /* Text aligned to left */
  padding: 2rem;
  color: var(--color-white);
  /* Ensure text is visible on images */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Better readability */
  width: 100%;
}

.banner-wrapper {
  width: 100%;
  background-color: var(--color-copper);
  display: flex;
  justify-content: center;
}

.banner-overlay {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-overlay p {
  text-align: center;
}

/* Limit banner zoom on ultra-wide screens */
@media (min-width: 1920px) {
  .banner {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

.banner-index {
  height: 616px;
  /* Increased by 10% from 560px */
  background-image: url('images/banner-index.jpg');
  background-position: top center;
  /* Image aligned to top */
  align-items: center;
  /* Keep text centered for Hero */
  text-align: center;
}

.banner-coaching {
  background-image: url('images/banner-coaching.jpg');
}

.banner-arte {
  background-image: url('images/banner-arte.jpg');
}

.banner-sobremi {
  background-image: url('images/banner-sobremi.jpg');
}

.banner h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

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

/* Alternating Sections */
.section-white {
  background-color: var(--color-white);
  padding: 5rem 0;
  margin: 0;
}

.section-cream {
  background-color: var(--color-cream);
  padding-top: 0px;
  padding-bottom: 0px;
  margin: 0;
}

.section-cream .container {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
}

footer {
  background-color: var(--color-text-main);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
  margin: 0;
  flex-shrink: 0;
  width: 100%;
}

footer p {
  color: var(--color-white);
  margin: 0;
}

/* Hamburger menu - hidden on desktop */
.hamburger {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    position: relative;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: 0.3s ease;
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
    left: 0;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    padding: 1rem 0;
    font-size: 1rem;
  }

  .banner {
    height: 300px;
    padding: 1rem;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .section-white {
    padding: 3rem 1rem;
  }

  .section-cream {
    padding: 4.5rem 1rem 2rem 1rem;
  }

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

  /* Better mobile typography */
  .banner-overlay p {
    font-size: 1.1rem !important;
  }

  .ref-title {
    font-size: 1.75rem !important;
  }

  .btn-main {
    font-size: 0.85rem;
    padding: 0.9rem 1.5rem;
  }
}

/* Reference Styles from User Image */
.ref-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-main);
  font-weight: Normal;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.ref-subtitle {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-copper);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.ref-content {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--color-text-content);
  line-height: 1.8;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EAEAEA;
}

.ref-content strong {
  color: var(--color-text-main);
  font-weight: 700;
}

/* Mobile adjustments for specific content blocks */
@media (max-width: 768px) {

  /* Force stacking on mobile for inline flex styles */
  .section-white .container[style*="display: flex"],
  .section-cream .container[style*="display: flex"] {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  /* Reset widths for stacked items */
  .section-white .container[style*="display: flex"]>div,
  .section-cream .container[style*="display: flex"]>div {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Make Arte and Coaching columns full width on mobile */
  .section-white .container[style*="max-width: 1200px"] {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .section-white .container[style*="max-width: 1200px"] > div[style*="display: flex"] {
    gap: 2rem !important;
    padding: 0 1rem;
  }

  .section-white .container[style*="max-width: 1200px"] > div[style*="display: flex"] > div {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Banner Overlay Mobile Adjustments */
  .banner-index .container {
    justify-content: center !important;
    align-items: center !important;
    padding: 1rem;
  }

  .banner-overlay {
    display: none !important;
  }

  .banner-overlay h1 {
    font-size: 2.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .banner-overlay .btn-container {
    justify-content: center !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .banner-overlay .btn-main {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Better mobile spacing for cards and images */
  .section-white .container[style*="display: flex"] > div img,
  .section-cream .container[style*="display: flex"] > div img {
    margin-bottom: 1.5rem;
  }

  /* Hide index1.jpg image on mobile */
  img[src="images/index1.jpg"] {
    display: none !important;
  }

  /* Improve card readability on mobile */
  div[style*="background-color"] p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  /* Better list spacing on mobile */
  ul {
    padding-left: 1.25rem;
  }

  /* Improve button container spacing */
  .btn-container {
    gap: 0.75rem !important;
  }

  /* Ensure proper text wrapping */
  h2, h3 {
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Adjust inline padding on mobile for sections */
  section[style*="padding: 5rem 0"] {
    padding: 3rem 1rem !important;
  }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
  .banner-overlay {
    padding: 1.5rem 1rem;
  }

  .banner-overlay h1 {
    font-size: 1.9rem !important;
  }

  .banner-overlay p {
    font-size: 1rem !important;
  }

  .ref-title {
    font-size: 1.5rem !important;
  }

  .section-white {
    padding: 2.5rem 1rem;
  }

  .section-cream {
    padding: 4rem 1rem 1.5rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .btn-main {
    font-size: 0.8rem;
    padding: 0.8rem 1.2rem;
    min-height: 44px; /* Better touch target for mobile */
  }

  .logo img {
    height: 50px; /* Slightly smaller logo on mobile */
  }
}

/* Improve button touch targets on all mobile devices */
@media (max-width: 768px) {
  .btn-main {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer {
    padding: 2rem 1rem;
  }

  /* Improve card spacing on mobile */
  div[style*="display: flex"][style*="gap"] {
    gap: 2rem !important;
  }

  /* Better spacing for text blocks */
  .ref-content {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }
}

/* Banner Overlay Styles (Desktop default) */
.banner-overlay {
  background-color: rgba(225, 220, 210, 0.9);
  padding: 3rem;
  max-width: 550px;
  border-radius: 4px;
  text-align: right;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-left: auto;
}

.banner-overlay h1 {
  color: #444;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: normal;
  text-shadow: none;
}

.banner-overlay hr {
  border: 0;
  border-top: 1px solid #999;
  margin-bottom: 0.75rem;
}

.banner-overlay p {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 2.5rem;
  text-shadow: none;
  font-family: var(--font-main);
}

.banner-overlay .btn-container {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}