/* ==========================================================
   2 Friends – Graham, TX
   Editorial layout inspired by Talulah & Hess
   Palette: charcoal + ivory
   ========================================================== */

:root {
  --charcoal: #2E2E2E;
  --charcoal-light: #444444;
  --charcoal-soft: #5A5A5A;
  --ivory: #FAF8F5;
  --ivory-dark: #EDE9E2;
  --accent: #C8A96E;
  --accent-hover: #B8944E;
  --white: #FFFFFF;
  --black: #111111;
  --shadow: rgba(0, 0, 0, 0.08);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --max-width: 1200px;
  --transition: 0.35s ease;
}

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

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

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

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

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

ul {
  list-style: none;
}

.container {
  width: 88%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===========================================================
   HAMBURGER NAV  (top-right, always visible)
   =========================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem 2rem;
  pointer-events: none;
}

.menu-btn {
  pointer-events: all;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 24px;
  position: relative;
  z-index: 2001;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
  left: 0;
}

.menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn span::before {
  content: '';
  top: -9px;
}

.menu-btn span::after {
  content: '';
  top: 9px;
}

/* Open state */
.menu-btn.active span {
  background: transparent;
}

.menu-btn.active span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--ivory);
}

.menu-btn.active span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--ivory);
}

/* White bars over dark hero */
.top-bar.on-hero .menu-btn span,
.top-bar.on-hero .menu-btn span::before,
.top-bar.on-hero .menu-btn span::after {
  background: var(--ivory);
}

/* Full-screen overlay nav */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: rgba(46, 46, 46, 0.97);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-nav.open {
  opacity: 1;
  visibility: visible;
}

.overlay-nav ul {
  text-align: center;
}

.overlay-nav li {
  margin: 1.5rem 0;
}

.overlay-nav a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
  position: relative;
  transition: color var(--transition);
}

.overlay-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width var(--transition);
}

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

.overlay-nav a:hover::after {
  width: 100%;
}

/* ===========================================================
   HERO
   =========================================================== */

/* ---- Header area: logo + name above the image ---- */
.hero-header {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--ivory);
  color: var(--charcoal);
}

.hero-header .hero-logo {
  max-width: 260px;
  margin: 0 auto 1.25rem;
  display: block;
}

.hero-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: var(--charcoal);
}

.hero-header h1 .num {
  font-feature-settings: "lnum";
  font-variant-numeric: lining-nums;
  font-size: 1em;
  display: inline;
  vertical-align: baseline;
}

.hero-header .tagline {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-l, #666);
  margin: 0;
}

/* ---- Centered image card ---- */
.hero-card {
  background: transparent;
  padding: 0;
}

.hero-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
}

/* --- Tagline overlay (on hero image) --- */
.tagline-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  padding: 2rem;
}

/* Vertical alignment */
.tagline-overlay.align-top {
  align-items: flex-start;
}

.tagline-overlay.align-center {
  align-items: center;
}

.tagline-overlay.align-bottom {
  align-items: flex-end;
}

/* Horizontal alignment */
.tagline-overlay.align-left {
  justify-content: flex-start;
  text-align: left;
}

.tagline-overlay.align-hcenter {
  justify-content: center;
  text-align: center;
}

.tagline-overlay.align-right {
  justify-content: flex-end;
  text-align: right;
}

.tagline-overlay h2 {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 700px;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ===========================================================
   TAGLINE BANNER
   =========================================================== */
.tagline-banner {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: 3rem 2rem;
}

.tagline-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================================================
   SECTION BACKGROUND & OVERLAY IMAGES
   =========================================================== */
.section-bg-image {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  z-index: 0;
}

.section-overlay-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.section-overlay-image img {
  display: block;
  height: auto;
  flex-shrink: 0;
  pointer-events: auto;
}

/* Vertical positioning */
.section-overlay-image.oi-v-top {
  align-items: flex-start;
}

.section-overlay-image.oi-v-middle {
  align-items: center;
}

.section-overlay-image.oi-v-bottom {
  align-items: flex-end;
}

/* Horizontal positioning */
.section-overlay-image.oi-h-left {
  justify-content: flex-start;
}

.section-overlay-image.oi-h-center {
  justify-content: center;
}

.section-overlay-image.oi-h-right {
  justify-content: flex-end;
}

/* Overlay image shapes — applied to .oi-shape-wrap container */
.oi-shape-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oi-shape-wrap img {
  display: block;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.oi-shape-none {
  /* default - no clipping */
}

.oi-shape-circle {
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.oi-shape-oval {
  border-radius: 50%;
}

.oi-shape-square {
  aspect-ratio: 1/1;
}

.oi-shape-rectangle {
  /* inherits natural aspect ratio */
}

.oi-shape-rounded {
  border-radius: 1rem;
}

/* Section color overlay */
.section-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Ensure section content sits above bg/overlay images */
section>.single-col,
section>.module,
section>.three-col,
section>.brand-header {
  position: relative;
  z-index: 2;
}

/* ===========================================================
   BRAND HEADER (above About section)
   =========================================================== */
.brand-header {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--charcoal-soft);
  padding: 2.5rem 1rem 1rem;
}

/* ===========================================================
   SECTION
   =========================================================== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin-bottom: 3rem;
  letter-spacing: 0.04em;
}

/* ===========================================================
   IMAGE + TEXT MODULES  (alternating rows)
   =========================================================== */
.module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.module-img {
  overflow: hidden;
}

.module-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.module-img img:hover {
  transform: scale(1.03);
}

.module-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: transparent;
}

.module-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.module-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}

.module:nth-child(even) .module-img {
  order: 2;
}

.module:nth-child(even) .module-text {
  order: 1;
}

/* Dark module variant */
.module-dark .module-text {
  background: transparent;
}

.module-dark .module-text h3 {
  color: var(--ivory);
}

.module-dark .module-text p {
  color: var(--ivory-dark);
}

/* Full-width text when image is hidden */
.module-text-full {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================================================
   IMAGE OVERLAY SYSTEM
   =========================================================== */
.img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-wrap>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-overlay {
  position: absolute;
  padding: 1.25rem;
  z-index: 2;
}

/* ── 9-position grid ── */
.ovl-top-left {
  top: 0;
  left: 0;
}

.ovl-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ovl-top-right {
  top: 0;
  right: 0;
}

.ovl-middle-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.ovl-middle-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ovl-middle-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.ovl-bottom-left {
  bottom: 0;
  left: 0;
}

.ovl-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.ovl-bottom-right {
  bottom: 0;
  right: 0;
}

.ovl-logo {
  max-height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.ovl-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* ===========================================================
   IMAGE GRID
   =========================================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.image-grid img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-grid img:hover {
  transform: scale(1.02);
}

/* ===========================================================
   FULL-WIDTH IMAGE BREAK
   =========================================================== */
.full-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}

/* ===========================================================
   CONTACT / INFO BAR
   =========================================================== */
.info-bar {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-bar h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.info-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
}

.info-details>div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-details .contact-image-col {
  flex-direction: row;
}

.info-details h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.info-details p {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  line-height: 1.8;
  color: var(--ivory-dark);
}

.info-details a {
  color: var(--accent);
  transition: color var(--transition);
}

.info-details a:hover {
  color: var(--ivory);
}

.contact-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image {
  max-height: clamp(3rem, 8vw, 6rem);
  width: auto;
  opacity: 0.6;
}

@media (max-width: 700px) {
  .contact-image-col {
    display: none;
  }
}

/* Social row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.social-row a {
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.social-row a svg {
  width: 24px;
  height: 24px;
}

.social-row a:hover {
  color: var(--accent);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--black);
  color: var(--charcoal-soft);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  position: relative;
}

.footer p {
  margin: 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 3rem;
}

.admin-link {
  position: absolute;
  right: 1.5rem;
  bottom: 50%;
  transform: translateY(50%);
  color: var(--ivory);
  opacity: 0.15;
  font-size: 2rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

.admin-link:hover {
  opacity: 0.6;
}

.footer-image {
  display: inline-block;
  height: 50px !important;
  max-height: 50px !important;
  max-width: 75px !important;
  width: auto !important;
  vertical-align: middle;
  margin: 0;
  opacity: 0.7;
  object-fit: contain;
}

@media (max-width: 700px) {
  .footer-image {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 45px !important;
  }
}

/* ===========================================================
   SINGLE COLUMN LAYOUT
   =========================================================== */
.single-col {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background: transparent;
}

.single-col img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 2.5rem;
}

.single-col-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.single-col-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}

.single-col-dark {
  background: transparent;
  max-width: none;
  padding: 4rem 2rem;
}

.single-col-dark .single-col-text h3 {
  color: var(--ivory);
}

.single-col-dark .single-col-text p {
  color: var(--ivory-dark);
}

.single-col-dark img {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================================
   THREE COLUMN LAYOUT
   =========================================================== */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  min-height: 400px;
}

.three-col .col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-col .col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: transparent;
}

.three-col .col-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.three-col .col-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--charcoal-light);
}

.three-col-dark .col-text {
  background: transparent;
}

.three-col-dark .col-text h3 {
  color: var(--ivory);
}

.three-col-dark .col-text p {
  color: var(--ivory-dark);
}

/* ===========================================================
   GALLERY GRID COLUMN VARIANTS
   =========================================================== */
.image-grid.cols-1 {
  grid-template-columns: 1fr;
}

.image-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* CONTACT COLUMN VARIANTS */
.info-details.cols-1 {
  grid-template-columns: 1fr;
}

.info-details.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-details.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
/* ---------- Tablet (≤ 900px) ---------- */
@media (max-width: 900px) {
  .module {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .module-img {
    max-height: 400px;
  }

  .module:nth-child(even) .module-img {
    order: 0;
  }

  .module:nth-child(even) .module-text {
    order: 0;
  }

  .image-grid,
  .image-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .image-grid.cols-1 {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .three-col .col img {
    max-height: 400px;
  }
}

/* ---------- Small tablet (≤ 700px) ---------- */
@media (max-width: 700px) {
  .info-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 320px;
  }

  .info-details.cols-2,
  .info-details.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
  .hero-header .tagline {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
  }

  .hero-header .hero-logo {
    max-width: 160px;
  }

  .tagline-banner {
    padding: 2rem 1.5rem;
  }

  .tagline-banner h2 {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
  }

  .image-grid,
  .image-grid.cols-2,
  .image-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .image-grid img {
    height: 260px;
  }

  .overlay-nav a {
    font-size: 1.5rem;
  }

  .full-image {
    height: 40vh;
  }
}

/* ---------- Very small (≤ 380px) ---------- */
@media (max-width: 380px) {
  .hero-header .hero-logo {
    max-width: 130px;
  }

  .overlay-nav a {
    font-size: 1.25rem;
  }
}
