/* ===========================
   ManilaLifestyleJournal styles
   =========================== */

:root {
  --cream: #FBF3E7;
  --beige: #EADFC8;
  --green: #2F8F5B;
  --green-dark: #246F47;
  --ocean: #1C7DA8;
  --coral: #FF7F66;
  --text-dark: #2E2A24;
  --text-muted: #5C5648;
  --white: #FFFFFF;
  --gray-placeholder: #D7D2C8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--ocean);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  margin: 0 0 16px 0;
  color: var(--text-dark);
}

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

.section-title.center,
.section-subtitle.center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #e8664f;
  text-decoration: none;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ===== Header ===== */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}

.logo:hover {
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--ocean);
  text-decoration: none;
}

/* Burger controls hidden on desktop */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* ===== Hero ===== */
.hero {
  padding: 70px 0;
  background-color: var(--cream);
  background-image: url("images/ManilaLifestyleJournal-tropical-lifestyle-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 420px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.hero .section-image {
  flex: 1 1 420px;
}

/* ===== Section images (16:9) ===== */
.section-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--gray-placeholder);
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Content Sections ===== */
.content-section {
  padding: 70px 0;
}

.content-section.alt-bg {
  background-color: var(--white);
}

.section-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.section-grid > * {
  flex: 1 1 420px;
}

.section-grid.reverse {
  flex-direction: row-reverse;
}

.section-text p {
  color: var(--text-muted);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.feature-list li {
  margin-bottom: 8px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--beige);
  border-radius: 8px;
  padding: 26px;
}

.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  color: var(--green-dark);
  font-weight: 600;
  margin: 0;
}

/* ===== Contact Form ===== */
#contact {
  background-color: var(--cream);
  background-image: url("images/ManilaLifestyleJournal-tropical-lifestyle-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 36px;
  border-radius: 10px;
  border: 1px solid var(--beige);
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid #c9c2ae;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--cream);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--ocean);
}

.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-row label {
  font-weight: 400;
  margin-bottom: 0;
}

/* ===== Legal pages ===== */
.legal-text h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.legal-text p {
  color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--green-dark);
  color: var(--cream);
  padding: 50px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-col p {
  color: var(--beige);
  margin: 0 0 10px 0;
}

.footer-col a {
  color: var(--beige);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  text-align: center;
  color: var(--beige);
  font-size: 0.9rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-dark);
  color: var(--cream);
  padding: 18px 20px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner a {
  color: var(--coral);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner .btn-small {
  flex-shrink: 0;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  padding: 36px;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-box h3 {
  color: var(--green-dark);
}

/* ===========================
   Responsive: Tablet (<=900px)
   Burger menu via checkbox hack
   =========================== */
@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 110;
  }

  .nav-toggle-label span,
  .nav-toggle-label::before,
  .nav-toggle-label::after {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle:checked ~ .nav-toggle-label::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--beige);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }

  .main-nav ul li {
    border-bottom: 1px solid var(--beige);
  }

  .main-nav ul li a {
    display: block;
    padding: 14px 0;
  }

  .hero-inner,
  .section-grid,
  .section-grid.reverse {
    flex-direction: column;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    padding: 10px 14px;
  }

  .cookie-banner p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .cookie-banner .btn-small {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ===========================
   Responsive: Mobile (<=600px)
   =========================== */
@media (max-width: 600px) {
  .hero {
    padding: 44px 0;
  }

  .content-section {
    padding: 44px 0;
  }

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

  .contact-form {
    padding: 24px;
  }

  .cookie-banner {
    padding: 8px 12px;
  }

  .cookie-banner-inner {
    gap: 10px;
    align-items: center;
  }

  .cookie-banner p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .cookie-banner .btn-small {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}
