/* Costa Mira - Unique Modern Blog Design | Warm Red & Cream Palette | Fully Responsive | No Images - Pure Text & Color */

:root {
  --bg: #FFFBF5;
  --bg-alt: #F5EDE4;
  --card: #FFFFFF;
  --accent: #D62828;
  --accent-dark: #9B2226;
  --text: #1F2937;
  --text-light: #4B5563;
  --border: #E5D9C8;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* Typography - Unique modern editorial feel */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--accent-dark);
}

/* Header - Sticky with elegant red accent line */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--text);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background-color: var(--text);
  transition: var(--transition);
}

/* Mobile Overlay Navigation - Unique full-screen experience */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 41, 55, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.mobile-overlay .nav-links {
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-overlay .nav-links a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
}

/* Hero - Asymmetric Split Layout (unique to this site) */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 10px 15px -3px rgb(214 40 40 / 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(214 40 40 / 0.35);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-alt);
}

/* Hero Visual Panel - Pure color & typography, no images */
.hero-visual {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius);
  padding: 3.5rem 2.75rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 140%;
  background: rgba(255,255,255,0.08);
  transform: rotate(25deg);
}

.hero-visual h2 {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: white;
}

.hero-visual p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  max-width: 28ch;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.topic-tags span {
  background: rgba(255,255,255,0.18);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Main Content Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Intro Section - Long readable text, editorial style */
.intro {
  max-width: 820px;
  margin: 0 auto 5rem;
  padding: 3rem 0;
}

.intro h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.intro p {
  font-size: 1.05rem;
  text-align: justify;
}

/* Articles Section - Asymmetric Magazine Grid (unique layout) */
.articles {
  padding: 3rem 0 6rem;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.articles-header h2 {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  grid-column: span 12;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .article-card:nth-child(odd) { grid-column: span 7; }
  .article-card:nth-child(even) { grid-column: span 5; }
  .article-card.featured { grid-column: span 12; }
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #E5D9C8;
}

.article-card h3 {
  color: var(--accent-dark);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.article-card p {
  flex: 1;
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.read-more:hover {
  gap: 0.7rem;
}

/* About / Philosophy Section */
.philosophy {
  background-color: var(--bg-alt);
  padding: 5rem 0;
  margin: 4rem 0;
}

.philosophy .container {
  max-width: 860px;
}

.philosophy h2 {
  text-align: center;
}

/* Contact CTA on home */
.contact-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, var(--bg-alt), var(--bg));
  border-radius: var(--radius);
  margin: 3rem 0;
}

/* Footer - Consistent across all pages */
footer {
  background-color: #1F2937;
  color: #D1D5DB;
  padding: 4rem 2rem 2.5rem;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.footer-col p, .footer-col a {
  color: #9CA3AF;
  margin-bottom: 0.4rem;
  display: block;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.8rem;
  color: #6B7280;
}

.footer-bottom a {
  color: #9CA3AF;
  margin: 0 0.6rem;
}

/* Contact Page Specific */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: 1.35rem;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
}

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

.form-success {
  display: none;
  background: #ECFDF5;
  color: #065F46;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Policy Pages - Clean long-form reading */
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.policy-page h1 {
  margin-bottom: 0.5rem;
}

.policy-page .last-updated {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.policy-section {
  margin-bottom: 3rem;
}

.policy-section h2 {
  font-size: 1.35rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.policy-section p, .policy-section ul {
  font-size: 1rem;
  color: var(--text-light);
}

.policy-section ul {
  padding-left: 1.4rem;
  margin: 1rem 0;
}

.policy-section li {
  margin-bottom: 0.6rem;
}

/* Thank You Page */
.thankyou {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thankyou-content {
  max-width: 680px;
}

.thankyou-content h1 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.thankyou-content .disclaimer {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  font-size: 0.95rem;
  text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
  }
  
  .hero-visual {
    min-height: 320px;
    padding: 2.5rem 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .article-card {
    grid-column: span 12 !important;
  }
  
  .articles-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Subtle animations for modern feel */
.article-card, .btn, .contact-form {
  will-change: transform;
}

/* Accessibility & SEO friendly */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}