/*
Theme Name: Breath Surfing
Theme URI: https://breathsurfing.com
Author: Breath Surfing
Author URI: https://breathsurfing.com
Description: A minimal, editorial WordPress theme for the Breath Surfing brand — flow state living, breathwork downloads, shop, services, and community articles. Built from the original Breath Surfing single-page design.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: breath-surfing
Tags: one-column, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready
*/

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

:root {
  --black: #0E0E0D;
  --cream: #F6F3ED;
  --warm-mid: #EAE3D6;
  --amber: #B8893A;
  --wood: #5E3F22;
  --muted: #7A746C;
  --border: rgba(110,85,45,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- NAV ---------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3.5rem;
  background: rgba(246,243,237,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nav-brand { font-weight: 200; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--black); }
.nav-links { display: flex; gap: 2.75rem; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber); }
.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 10rem 2rem 6rem; position: relative; overflow: hidden; }
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(184,137,58,0.07) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 3rem; object-fit: cover; animation: fadeUp 1s ease both; }
.hero-tagline { font-weight: 200; font-size: 0.65rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--amber); margin-bottom: 2rem; animation: fadeUp 1s 0.15s ease both; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 1.0; color: var(--black); letter-spacing: -0.02em; animation: fadeUp 1s 0.25s ease both; }
.hero-title em { font-style: italic; color: var(--wood); }
.hero-rule { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--amber), transparent); margin: 2.5rem auto; animation: fadeUp 1s 0.4s ease both; }
.hero-sub { font-weight: 200; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--muted); max-width: 320px; margin: 0 auto 3rem; animation: fadeUp 1s 0.5s ease both; }
.hero-cta { display: inline-block; padding: 0.9rem 2.75rem; border: 0.5px solid rgba(14,14,13,0.5); font-weight: 200; font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--black); text-decoration: none; position: relative; overflow: hidden; transition: color 0.3s; animation: fadeUp 1s 0.65s ease both; }
.hero-cta::before { content: ''; position: absolute; inset: 0; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; z-index: -1; }
.hero-cta:hover { color: var(--cream); }
.hero-cta:hover::before { transform: scaleX(1); }

/* ---------- SECTIONS ---------- */
.divider { width: 100%; height: 0.5px; background: var(--border); max-width: 1100px; margin: 0 auto; }
section.site-section { padding: 7rem 3.5rem; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); color: var(--black); margin-bottom: 0.9rem; line-height: 1.1; }
.section-title em { font-style: italic; color: var(--wood); }
.section-intro { font-size: 0.88rem; color: var(--muted); max-width: 480px; margin-bottom: 3.5rem; line-height: 1.85; }

/* ---------- DOWNLOADS ---------- */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.download-card { background: var(--black); padding: 2.25rem 2rem; position: relative; overflow: hidden; cursor: pointer; transition: transform 0.25s; }
.download-card::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--amber); opacity: 0.07; transition: transform 0.4s ease; }
.download-card:hover { transform: translateY(-3px); }
.download-card:hover::after { transform: scale(1.5); }
.dl-icon { width: 32px; height: 32px; border: 0.5px solid rgba(184,137,58,0.35); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.dl-icon svg { width: 14px; height: 14px; stroke: var(--amber); fill: none; stroke-width: 1.5; }
.dl-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: #F6F3ED; margin-bottom: 0.5rem; }
.dl-desc { font-size: 0.76rem; color: rgba(246,243,237,0.45); line-height: 1.75; margin-bottom: 1.5rem; }
.dl-link { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); text-decoration: none; border-bottom: 0.5px solid rgba(184,137,58,0.3); padding-bottom: 0.15rem; }

/* ---------- SHOP ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: #fff; border: 0.5px solid var(--border); overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(90,60,20,0.09); }
.product-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #EDE8DF; }
.product-info { padding: 1.4rem 1.6rem 1.75rem; border-top: 0.5px solid var(--border); }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; color: var(--black); margin-bottom: 0.4rem; }
.product-desc { font-size: 0.76rem; color: var(--muted); margin-bottom: 1.1rem; line-height: 1.7; }
.product-btn { display: inline-block; padding: 0.6rem 1.6rem; background: var(--black); color: var(--cream); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.product-btn:hover { background: var(--wood); }

/* ---------- SERVICES ---------- */
.services-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.service-item { padding: 1.5rem 0; border-top: 0.5px solid var(--border); }
.service-item:last-child { border-bottom: 0.5px solid var(--border); }
.service-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--black); margin-bottom: 0.35rem; }
.service-detail { font-size: 0.78rem; color: var(--muted); line-height: 1.75; }
.services-cta-block { background: var(--warm-mid); padding: 2.75rem; position: relative; overflow: hidden; }
.services-cta-block::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--amber); opacity: 0.08; }
.cta-heading { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 300; color: var(--black); margin-bottom: 0.75rem; line-height: 1.25; }
.cta-heading em { font-style: italic; color: var(--wood); }
.cta-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.8; }
.cta-btn { display: inline-block; padding: 0.75rem 2rem; border: 0.5px solid var(--black); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); text-decoration: none; transition: all 0.22s; }
.cta-btn:hover { background: var(--black); color: var(--cream); }

/* ---------- ARTICLES / COMMUNITY ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.article-card { border-top: 1px solid var(--amber); padding-top: 1.5rem; cursor: pointer; }
.article-tag { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.7rem; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--black); margin-bottom: 0.5rem; line-height: 1.3; transition: color 0.2s; }
.article-card:hover .article-title { color: var(--wood); }
.article-excerpt { font-size: 0.78rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.article-read { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black); text-decoration: none; border-bottom: 0.5px solid var(--black); padding-bottom: 0.1rem; }

/* ---------- SINGLE POST ---------- */
.single-article { max-width: 720px; margin: 0 auto; padding: 9rem 2rem 6rem; }
.single-article .article-tag { margin-bottom: 1rem; }
.single-article h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 1.5rem; }
.single-article .entry-meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; }
.single-article .entry-content { font-size: 0.95rem; color: #262523; line-height: 1.9; }
.single-article .entry-content p { margin-bottom: 1.4rem; }
.single-article .entry-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 400; margin: 2.2rem 0 1rem; }
.single-article .entry-content a { color: var(--wood); }
.single-article .entry-content img { margin: 2rem 0; }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); text-decoration: none; }

/* ---------- PAGES / GENERIC CONTENT ---------- */
.page-content-wrap { max-width: 800px; margin: 0 auto; padding: 9rem 2rem 6rem; }
.page-content-wrap h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.page-content-wrap .entry-content { font-size: 0.92rem; color: #262523; line-height: 1.85; }
.page-content-wrap .entry-content p { margin-bottom: 1.3rem; }

/* ---------- COMMENTS ---------- */
.comments-area { max-width: 720px; margin: 3rem auto 0; padding: 0 2rem; }
.comments-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-list .comment { border-top: 0.5px solid var(--border); padding: 1.25rem 0; }
.comment-form label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 0.5px solid var(--border); background: #fff; font-family: 'Jost', sans-serif; font-size: 0.85rem; margin-bottom: 1.2rem;
}
.comment-form button, .comment-form input[type="submit"] {
  padding: 0.75rem 2rem; border: 0.5px solid var(--black); background: transparent; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all 0.22s;
}
.comment-form button:hover, .comment-form input[type="submit"]:hover { background: var(--black); color: var(--cream); }

/* ---------- WOOCOMMERCE (if active) ---------- */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; list-style: none; }
.woocommerce ul.products li.product { border: 0.5px solid var(--border); background: #fff; padding-bottom: 1rem; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .price { color: var(--wood); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--black) !important; color: var(--cream) !important; border-radius: 0 !important; font-size: 0.68rem !important; letter-spacing: 0.18em !important; text-transform: uppercase !important;
}

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--black); padding: 4rem 3.5rem; text-align: center; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 1.25rem; display: block; opacity: 0.85; object-fit: cover; }
.footer-tagline { font-weight: 200; font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.5rem; }
.footer-text { font-size: 0.72rem; color: rgba(246,243,237,0.3); line-height: 1.9; }
.footer-text a { color: rgba(246,243,237,0.45); text-decoration: none; }

/* ---------- SCREEN-READER TEXT / SKIP LINK ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus {
  background: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); clip: auto !important; color: #111;
  display: block; font-size: 0.9rem; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* ---------- ANIMATION ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section.site-section { padding: 4rem 1.5rem; }
  .services-layout { grid-template-columns: 1fr; gap: 2rem; }
}
