﻿/*
 * main.css — Mustartlove.com custom styles
 * Template: Phantom (HTML5 UP)
 * Industry: Social Dating / Lifestyle App
 */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --bg: #1a0a14;
  --surface: #251425;
  --surface-alt: #2e1530;
  --text: #f0e8ec;
  --text-muted: #b89aa8;
  --accent: #e05c8a;
  --accent-secondary: #ff8c42;
  --accent-soft: rgba(224,92,138,0.12);
  --accent-rgb: 224,92,138;
  --border: rgba(255,255,255,0.10);
  --radius: 12px;
  --gap: 2.5em;
  --funding-bar-h: 0px;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Source Sans Pro', sans-serif;
}

/* ── Fixed Header ───────────────────────────────────────── */
#header {
  position: fixed;
  top: var(--funding-bar-h, 0px);
  left: 0;
  right: 0;
  z-index: 10000;
  height: 4em;
  padding: 0 2em;
  background: rgba(26,10,20,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

#header .inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.05em;
}

#header .logo .symbol {
  margin: 0;
  line-height: 0;
}

#header .logo .symbol img {
  width: 2em;
  height: 2em;
  display: block;
}

#header .logo .title {
  color: var(--text);
}

#header nav {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-left: auto;
}

#header nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

#header nav ul li a {
  display: flex;
  align-items: center;
  height: 4em;
  padding: 0 1em;
  color: rgba(240,232,236,0.80);
  font-size: 0.75em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
  transition: color 0.2s;
}

#header nav ul li a:hover {
  color: #ffffff;
}

/* ── Page Wrapper ───────────────────────────────────────── */
#wrapper {
  padding-top: calc(4em + var(--funding-bar-h, 0px));
}

/* ── Banner / Hero Section ──────────────────────────────── */
#banner {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(40,5,20,0.30);
  background-blend-mode: multiply;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5em 2em;
}

#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}

#banner > * {
  position: relative;
  z-index: 2;
}

#banner .inner {
  max-width: 900px;
  margin: 0 auto;
}

#banner h1 {
  color: #ffffff;
  font-size: 2.8em;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

#banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

/* ── About page hero override ───────────────────────────── */
body.page-about #banner {
  background-image: url('../images/about-hero.jpg') !important;
}

/* ── Product page hero override ─────────────────────────── */
body.page-product #banner {
  background-image: url('../images/product-hero.jpg') !important;
}

/* ── Price page hero override ───────────────────────────── */
body.page-price #banner {
  background-image: url('../images/product-feature-1.jpg') !important;
}

/* ── Team page hero override ────────────────────────────── */
body.page-team #banner {
  background-image: url('../images/about-hero.jpg') !important;
}

/* ── Contact page hero override ─────────────────────────── */
body.page-contact #banner {
  background-image: url('../images/about-story.jpg') !important;
}

/* ── Blog listing page hero override ───────────────────── */
body.page-blog #banner {
  background-image: url('../images/article-social-dating-app-trends.jpg') !important;
}

/* ── Main Content ───────────────────────────────────────── */
#main {
  background: var(--bg);
}



/* ── Tiles Grid ─────────────────────────────────────────── */

/* ── Feature Section ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 3em auto;
  padding: 0 2em;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  border: 1px solid var(--border);
  text-align: center;
}

.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2em;
}

.feature-card .icon-wrap i {
  color: var(--accent);
  font-size: 1.4em;
}

.feature-card h3 {
  color: var(--text);
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 0.6em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.65;
}

/* ── Section Headings ────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 1100px;
  margin: 3em auto 2em;
  padding: 0 2em;
}

.section-header h2 {
  font-size: 2em;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1em;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Team Card (R-TEAM1) ─────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 2em;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
  border: 1px solid var(--border);
}

.team-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2em;
}

.team-card h3 {
  color: var(--text);
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.2em;
}

.team-card .team-role {
  color: var(--accent);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8em;
}

.team-card .bio {
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.6;
}

/* Horizontal team card variant */
.team-card.team-card--h {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1.8em !important;
  padding: 1.8em 2em !important;
  text-align: left !important;
}

.team-card.team-card--h img {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  margin: 0 !important;
  border-radius: 50% !important;
}

.team-card.team-card--h .team-info {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .team-card.team-card--h {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

.team-h-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 2em;
}

/* ── Blog Card Thumbnail (R-CARD-THUMB1) ─────────────────── */
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Blog Grid ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 2em;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(224,92,138,0.12);
}

.article-card.pinned {
  border-left: 3px solid var(--accent);
  background: rgba(224,92,138,0.06);
}

.card-body {
  padding: 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  margin-bottom: 0.8em;
}

.card-body .tag.funding {
  background: var(--accent);
  color: #fff;
}

.card-body h2 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.card-body h2 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h2 a:hover {
  color: var(--accent);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.87em;
  line-height: 1.6;
  margin-bottom: 1em;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.8em;
  border-top: 1px solid var(--border);
}

.card-footer time {
  color: var(--text-muted);
  font-size: 0.8em;
}

/* ── Article Page ────────────────────────────────────────── */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3em 2em;
}

.article-hero-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2em;
}

.article-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-page h1 {
  font-size: 2em;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em;
}

.article-content h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin: 1.5em 0 0.5em;
}

.article-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.article-content ul, .article-content ol {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 1.2em 1.5em;
}

.article-content li {
  margin-bottom: 0.4em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88em;
  margin-bottom: 2em;
}

.back-link:hover {
  color: #fff;
}

/* ── Story Image ─────────────────────────────────────────── */
.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 2em 0;
}

.story-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Pricing Cards ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 2em;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(224,92,138,0.12) 0%, var(--surface) 100%);
}

.pricing-card .plan-name {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8em;
}

.pricing-card .price {
  font-size: 2.8em;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.1em;
}

.pricing-card .price-period {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-bottom: 1.5em;
}

.pricing-card .plan-desc {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  text-align: left;
}

.pricing-card ul li {
  color: var(--text-muted);
  font-size: 0.88em;
  padding: 0.4em 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.pricing-card ul li i {
  color: var(--accent);
  font-size: 0.9em;
}

.pricing-card .cta {
  margin-top: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7em 2em;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #f06fa0;
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Contact Form ────────────────────────────────────────── */
.contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
}

.contact-form label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4em;
  margin-top: 1.2em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7em 1em;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-info h3 {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1em;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9em;
  line-height: 1.7;
  margin-bottom: 0.7em;
}

/* ── Investors Section ───────────────────────────────────── */
.investors-section {
  max-width: 1100px;
  margin: 3em auto;
  padding: 2em;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.investors-section h2 {
  font-size: 1.5em;
  color: var(--text);
  margin-bottom: 0.5em;
}

.investors-section p {
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.7;
}

.investors-section .vc-name {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
  display: block;
  margin: 0.8em 0 0.4em;
}

/* ── Section Padding ─────────────────────────────────────── */
.section {
  padding: 5em 0;
}

.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3em 2em;
}

.legal-page h1 {
  font-size: 2em;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.3em;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em;
}

.legal-page h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--text);
  margin: 1.5em 0 0.4em;
}

.legal-page p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1em;
}

.legal-page ul, .legal-page ol {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 1em 1.5em;
}

.legal-page li {
  margin-bottom: 0.4em;
}

/* ── Footer ──────────────────────────────────────────────── */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
}

#footer > /* inner grid removed — caused tiles to collapse */

#footer h2 {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1em;
}

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

#footer .footer-nav li {
  border: none;
  padding: 0;
}

#footer .footer-nav a {
  color: var(--text-muted);
  font-size: 0.88em;
  text-decoration: none;
  line-height: 2.2;
  border: none;
}

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

#footer p {
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.7;
}

#footer .copyright {
  max-width: 1100px;
  margin: 2em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  font-size: 0.82em;
  color: var(--text-muted);
  text-align: center;
  list-style: none;
  display: block;
}

#footer .copyright li {
  display: inline;
  border: none;
  padding: 0;
}

#footer .copyright li::after {
  content: ' | ';
  margin: 0 0.5em;
}

#footer .copyright li:last-child::after {
  content: '';
}

/* ── Cookie Banner ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface, #151825);
  color: var(--text, #e8eaf0);
  padding: 1.2em 2em;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.88em;
  flex: 1;
  min-width: 200px;
}

#cookie-banner a {
  color: var(--accent, #e05c8a);
  text-decoration: underline;
}

#cookie-banner .cookie-btns {
  display: flex;
  gap: 0.8em;
  align-items: center;
}

#cookie-banner button {
  border: none;
  padding: 0.45em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  font-family: inherit;
}

#cookie-banner #cookie-accept {
  background: var(--accent, #e05c8a);
  color: #fff;
}

#cookie-banner #cookie-decline {
  background: transparent;
  color: var(--text-muted, #b89aa8);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

/* ── Product Feature Images ──────────────────────────────── */
.feature-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 0 1.5em;
}

.feature-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 3em auto;
  padding: 0 2em;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.2em;
  font-weight: 900;
  color: var(--accent);
  display: block;
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 0.85em;
}

/* ── Utility Classes ──────────────────────────────────────── */
.section-header--left {
  text-align: left;
  margin: 0 0 2em;
}

.section-header--gap {
  margin-top: 5em;
}

.features-grid--flush {
  padding: 0;
  margin: 0;
}

.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2em 4em;
}

.faq-h3 {
  color: var(--text);
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}

.faq-p {
  color: var(--text-muted);
  line-height: 1.7;
}

.link-accent {
  color: var(--accent);
}

.btn-mt {
  margin-top: 1em;
  display: inline-block;
}

.btn-top {
  margin-top: 1.2em;
  display: inline-block;
}

.contact-heading {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1em;
}

.contact-form-submit {
  margin-top: 1.5em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  #banner h1 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .blog-grid, .features-grid, .pricing-grid, .team-grid {
    grid-template-columns: 1fr;
  }

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

  .article-page, .legal-page {
    padding: 2em 1em;
  }

  .section-inner {
    padding: 0 1em;
  }

  

  #footer > .inner {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

@media (max-width: 480px) {
  #banner h1 {
    font-size: 1.6em;
  }

  #banner {
    padding: 3em 1em;
    min-height: 400px;
  }

  .pricing-card .price {
    font-size: 2.2em;
  }
}

/* R-ABOUT4: Our Story two-column layout */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius, 8px);
}
.story-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius, 8px);
  display: block;
}
@media (max-width: 768px) {
  .spotlight-section { grid-template-columns: 1fr; }
}




@media (max-width: 768px) {
}
@media (max-width: 480px) {
}


/* =============================================
   TILES SECTION - fixed-height overlay cards
   ============================================= */

  padding: 0 2em;
  max-width: 1100px;
  margin: 2em auto;
  
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 2em;
  box-sizing: border-box;
}
.tiles article {
  position: relative;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
}
.tiles article > .image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}
.tiles article > .image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.tiles article > .image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(40,5,20,0.30) 0%, rgba(40,5,20,0.70) 100%);
  z-index: 1;
}
.tiles article > a {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.4em;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none;
  z-index: 3;
  border-bottom: none;
  box-sizing: border-box;
}
.tiles article > a h2 {
  color: #ffffff !important;
  margin: 0 0 0.35em;
  font-size: 1.05em;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.tiles article > a .content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  width: 100%;
}
.tiles article > a .content p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.86em;
  line-height: 1.55;
  margin: 0;
}
.tiles article:hover > a .content {
  max-height: 7em;
  opacity: 1;
}
@media (max-width: 768px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
}



/* #main .inner — block container, no extra padding (children pad themselves) */
#main .inner {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}


/* Footer grid — R-FOOTER1 */
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3em;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4em;
  align-items: start;
  box-sizing: border-box;
}

