/* ============================================
   THE MESSIANIC SOFER - Base Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-bg: #ffffff;
  --color-beige: #EBE3DC;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-red: #c0392b;
  --color-border: #1a1a1a;
  --font-serif: 'Cinzel', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 100px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.phone-link:hover {
  opacity: 0.7;
}

.flag-icon {
  width: 36px;
  height: 24px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
}

.nav-list a {
  display: block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  position: relative;
  transition: var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--color-border);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.nav-list a.active {
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   MAIN & SECTIONS
   ============================================ */
main {
  min-height: calc(100vh - var(--header-height) - 200px);
}

.section {
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HERO SPLIT (Welcome page)
   ============================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
  max-height: 60vh;
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center 55%;
}

.hero-panel {
  background-color: var(--color-beige);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 60vh;
}

.hero-panel h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-panel .tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-panel .notice {
  color: var(--color-red);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--color-text);
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-light {
  border-color: var(--color-bg);
  color: var(--color-bg);
}

.btn-light:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ============================================
   FULL-BLEED HERO
   ============================================ */
.hero-full {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-full .hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-bg);
  padding: 2rem;
}

.hero-full h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.2;
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, #8B7355 0%, #A0927B 50%, #8B7355 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/canvas3.png') center/cover;
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.page-banner h1 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 2px;
  line-height: 1.2;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background: var(--color-beige);
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 400;
}

.content-section p {
  margin-bottom: 1rem;
  text-align: justify;
  max-width: 75ch;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section a:hover {
  opacity: 0.7;
}

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

.text-center p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col .text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ============================================
   SERVICE CARDS (What I do)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  background: var(--color-beige);
  overflow: hidden;
}

.service-card.reverse {
  direction: rtl;
}

.service-card.reverse > * {
  direction: ltr;
}

.service-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.service-card .subtitle {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-beige);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.site-footer .logo-small {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  border-radius: 2px;
}

/* ============================================
   PLACEHOLDER PAGE
   ============================================ */
.placeholder {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.placeholder h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.placeholder p {
  color: var(--color-text-muted);
  max-width: 50ch;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .content-section p {
    text-align: left;
  }

  .header-top {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .header-brand {
    flex: 1 1 100%;
    order: 1;
  }

  .header-contact {
    order: 2;
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.5rem;
  }

  .nav-toggle {
    display: block;
    order: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-list a::after {
    display: none;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 2rem 1.5rem;
    min-height: 50vh;
  }

  .hero-full {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card,
  .service-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-card .card-image {
    height: 250px;
  }

  .page-banner {
    padding: 3rem 1rem;
  }

  .content-section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

  .hero-panel h2 {
    font-size: 1.5rem;
  }
}
