/*
Theme Name: Sea to Sky Realty
Theme URI: https://bradentonbroker.de
Author: Weiss & Weiss International LLC
Author URI: https://bradentonbroker.de
Description: Editorial boutique real-estate theme for Sea to Sky Realty — layout and styles only. All content is authored in WordPress (pages, menus, Customizer). Bilingual DE/EN ready. Import the companion content XML to seed pages and menus.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seatosky
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, block-styles, wide-blocks
*/

/* Base reset & tokens */
:root {
  --bg: #f4efe6;
  --bg-2: #ebe3d4;
  --ink: #131a24;
  --ink-2: #2a3340;
  --muted: #6b6a63;
  --line: #cdc3b2;
  --accent: #8a6a3b;
  --accent-ink: #6b5128;
  --overlay: 0.42;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-alt: 'Instrument Serif', 'Cormorant Garamond', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 40px; color: #fff;
  transition: background .35s ease, color .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid rgba(255,255,255,0);
}
.nav.scrolled { background: rgba(244,239,230,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); padding: 14px 40px; border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; list-style: none; margin: 0; padding: 0; }
.nav-links a { opacity: 0.9; transition: opacity .2s; position: relative; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-links a:hover::after { transform: scaleX(1); }

.brand { text-align: center; line-height: 1; }
.brand .mark { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0.04em; }
.brand .mark em { font-style: italic; font-weight: 400; }
.brand .sub { display: block; font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 4px; opacity: 0.75; font-weight: 500; }
.brand img.custom-logo { max-height: 48px; width: auto; margin: 0 auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 24px; justify-content: flex-end; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 3px; }
.lang-toggle button { padding: 5px 12px; border-radius: 999px; opacity: 0.7; transition: all .2s; font-size: 11px; letter-spacing: 0.08em; }
.lang-toggle button.active { background: currentColor; opacity: 1; }
.lang-toggle button.active span { color: var(--ink); mix-blend-mode: difference; }
.nav.scrolled .lang-toggle button.active { background: var(--ink); color: var(--bg); }
.nav:not(.scrolled) .lang-toggle button.active { background: #fff; color: var(--ink); }

.cta-nav { font-size: 12px; letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; transition: all .25s; display: inline-block; }
.cta-nav:hover { background: currentColor; }
.cta-nav:hover { color: var(--ink); }
.nav.scrolled .cta-nav:hover { color: var(--bg); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 720px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.hero-video, .hero-video video, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-fallback {
  background:
    radial-gradient(ellipse 140% 8% at 50% 78%, rgba(255,255,255,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 30% 35%, rgba(255,255,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 30% at 75% 25%, rgba(255,255,255,0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0b3a58 0%, #145a7e 18%, #1f7ba0 38%, #3ea5c2 58%, #7fc8d6 72%, #c9e4e4 78%, #e8dcc0 82%, #d9c595 92%, #b89d6a 100%);
}
.hero-fallback::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(93deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 6px), repeating-linear-gradient(87deg, rgba(0,0,0,0.03) 0 3px, transparent 3px 9px); mix-blend-mode: overlay; opacity: 0.6; }
.hero-fallback::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 20% at 50% 105%, #a88550 0%, #c29f66 35%, transparent 70%); opacity: 0.75; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(6,20,35,calc(var(--overlay) * 1.0)) 0%, rgba(10,35,55,calc(var(--overlay) * 0.25)) 35%, rgba(8,18,30,calc(var(--overlay) * 1.15)) 100%); }
.hero-vignette { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%); }
.hero-content { position: relative; z-index: 3; width: 100%; padding: 0 40px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.hero-eyebrow { font-size: 11px; letter-spacing: 0.38em; text-transform: uppercase; font-weight: 500; margin-bottom: 28px; opacity: 0.85; display: inline-flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: currentColor; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.015em; margin: 0 0 28px; }
.hero-title em { font-style: italic; font-weight: 300; color: #e8d4ae; }
.hero-lede { font-size: 16px; line-height: 1.6; max-width: 440px; opacity: 0.9; font-weight: 300; margin: 0; }
.hero-meta { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 20px; }
.hero-meta-col { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.hero-meta-col strong { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; margin-top: 6px; opacity: 1; }
.hero-scroll { position: absolute; left: 40px; bottom: 36px; z-index: 3; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); opacity: 0.7; }

/* SECTIONS */
section.sts-section, .page-body section { padding: 120px 40px; }
.container { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; display: inline-block; }
.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(40px, 5.2vw, 76px); margin: 0; color: var(--ink); }
.display em { font-style: italic; color: var(--accent); font-weight: 300; }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--ink-2); font-weight: 300; max-width: 58ch; }

/* Credo */
.credo { background: var(--bg); }
.credo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.credo-sig { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 300; color: var(--accent); line-height: 1.2; margin-top: 32px; }
.credo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.stat .n em { font-style: italic; color: var(--accent); }
.stat .l { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Regions */
.regions { background: var(--bg-2); }
.regions-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.regions-head p { margin: 0; }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.region { background: #fff; overflow: hidden; cursor: pointer; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; display: flex; flex-direction: column; }
.region:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,26,36,0.25); }
.region-img { aspect-ratio: 4/5; position: relative; overflow: hidden; background: linear-gradient(135deg, #8fb0c4 0%, #5a7a8f 100%); }
.region-img .placeholder { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, rgba(0,0,0,0.04) 12px 24px); }
.region-img .scene { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.region:hover .scene { transform: scale(1.06); }
.region-img .num { position: absolute; top: 24px; left: 24px; font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff; font-weight: 300; }
.region-img .num::before { content: ''; display: inline-block; width: 40px; height: 1px; background: #fff; vertical-align: middle; margin-right: 14px; opacity: 0.7; }
.region-body { padding: 28px 28px 32px; }
.region-tag { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-ink); }
.region-name { font-family: var(--serif); font-size: 34px; font-weight: 300; line-height: 1.1; margin: 8px 0 14px; letter-spacing: -0.01em; }
.region-desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; font-weight: 300; }
.region-meta { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.region-meta strong { color: var(--ink); font-weight: 500; }

/* About */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: stretch; }
.about-portrait { position: relative; aspect-ratio: 4/5; background: linear-gradient(135deg, #3a4755 0%, #1e2733 100%); overflow: hidden; }
.about-portrait::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 14px, rgba(0,0,0,0.04) 14px 28px); }
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-portrait-label { position: absolute; bottom: 20px; left: 20px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.1em; text-transform: uppercase; }
.about-portrait .frame-num { position: absolute; top: 20px; right: 20px; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.4); font-size: 14px; }
.about-quote { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); font-weight: 300; line-height: 1.25; font-style: italic; color: var(--ink); margin: 0 0 40px; letter-spacing: -0.005em; }
.about-quote::before { content: '\201C'; font-size: 72px; line-height: 0.1; display: block; color: var(--accent); margin-bottom: 24px; font-style: normal; }
.about-bio p { font-size: 15px; line-height: 1.7; color: var(--ink-2); font-weight: 300; }
.about-sign { display: flex; gap: 40px; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.about-sign-name { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 400; color: var(--ink); line-height: 1; }
.about-sign-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Process */
.process { background: var(--ink); color: #e8e4d9; padding: 140px 40px; }
.process .eyebrow { color: #c9a874; }
.process .display { color: #f5f1e6; }
.process-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 80px; }
.process-head p { color: #b7b2a4; max-width: 50ch; font-weight: 300; }
.process-list { border-top: 1px solid rgba(255,255,255,0.12); }
.process-row { display: grid; grid-template-columns: 80px 260px 1fr auto; gap: 40px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,0.12); transition: padding .3s ease, background .3s ease; }
.process-row:hover { padding-left: 16px; padding-right: 16px; background: rgba(255,255,255,0.02); }
.process-num { font-family: var(--serif); font-style: italic; font-size: 40px; font-weight: 300; color: #c9a874; line-height: 1; }
.process-title { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.process-desc { color: #a8a396; font-size: 14px; line-height: 1.6; font-weight: 300; }
.process-time { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #7a7366; white-space: nowrap; }

/* Subpages teaser */
.subpages { background: var(--bg); padding: 120px 40px 140px; }
.subpages-head { text-align: center; margin-bottom: 64px; }
.subpages-head .eyebrow { justify-content: center; }
.sub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sub-card { background: transparent; border: 1px solid var(--line); padding: 32px 28px 28px; transition: all .3s; cursor: pointer; display: flex; flex-direction: column; min-height: 220px; }
.sub-card:hover { background: var(--ink); color: #f5f1e6; border-color: var(--ink); }
.sub-card .n { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); margin-bottom: 18px; }
.sub-card:hover .n { color: #c9a874; }
.sub-card h4 { font-family: var(--serif); font-size: 26px; font-weight: 300; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.005em; }
.sub-card p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 auto 0; font-weight: 300; }
.sub-card:hover p { color: #b7b2a4; }
.sub-card .arr { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 24px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.sub-card .arr span:last-child { transition: transform .3s; }
.sub-card:hover .arr span:last-child { transform: translateX(6px); }

/* Contact */
.contact { background: var(--bg-2); padding: 140px 40px; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { background: #fff; padding: 48px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.field input, .field select, .field textarea { border: none; border-bottom: 1px solid var(--line); padding: 10px 0; font-family: inherit; font-size: 15px; background: transparent; color: var(--ink); transition: border-color .2s; font-weight: 300; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; margin: 8px 0 24px; font-weight: 300; }
.checkbox input { accent-color: var(--accent); margin-top: 2px; }
.btn-primary { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: var(--bg); padding: 18px 28px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; transition: all .3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--accent); }
.btn-primary .arr { transition: transform .3s; display: inline-block; }
.btn-primary:hover .arr { transform: translateX(6px); }
.contact-side h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; margin: 0 0 28px; letter-spacing: -0.01em; }
.contact-side h2 em { font-style: italic; color: var(--accent); }
.contact-info { margin-top: 48px; display: grid; gap: 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; font-size: 14px; align-items: baseline; font-weight: 300; }
.info-row .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.info-row .v strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; display: block; margin-bottom: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: #b7b2a4; padding: 80px 40px 40px; font-size: 13px; font-weight: 300; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.foot-grid h5 { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: #c9a874; font-weight: 500; margin: 0 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a:hover { color: #f5f1e6; }
.foot-brand .mark { font-family: var(--serif); font-size: 28px; font-weight: 300; color: #f5f1e6; margin-bottom: 12px; letter-spacing: 0.02em; }
.foot-brand p { max-width: 32ch; line-height: 1.6; font-weight: 300; margin: 0 0 8px; }
.foot-bot { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 11px; color: #7a7366; letter-spacing: 0.08em; }

/* Generic single-page body (for subpages like Kaufen, Impressum, etc.) */
.page-body { padding: 160px 40px 120px; background: var(--bg); }
.page-body .container { max-width: 860px; }
.page-body h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; margin: 0 0 32px; letter-spacing: -0.01em; }
.page-body h1 em { font-style: italic; color: var(--accent); }
.page-body h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); margin: 56px 0 20px; letter-spacing: -0.005em; }
.page-body h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 32px 0 12px; }
.page-body p, .page-body li { font-size: 16px; line-height: 1.75; color: var(--ink-2); font-weight: 300; }
.page-body ul, .page-body ol { padding-left: 20px; margin: 16px 0; }
.page-body blockquote { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 32px 0; font-weight: 300; line-height: 1.3; }
.page-body a { color: var(--accent-ink); border-bottom: 1px solid var(--line); }
.page-body a:hover { border-color: var(--accent); }
.page-body .wp-block-image { margin: 32px 0; }
.page-body .wp-block-image img { width: 100%; height: auto; }
.page-hero { padding: 160px 40px 60px; background: var(--bg); }
.page-hero .container { max-width: 1280px; }
.page-hero .eyebrow { margin-bottom: 20px; }

/* Lang switching (if a user includes bilingual content inline) */
html [data-en], html [data-en-block] { display: none !important; }
html.lang-en [data-de] { display: none !important; }
html.lang-en [data-en] { display: inline !important; }
html.lang-en [data-en-block] { display: block !important; }
html .brand [data-de].sub, html .brand [data-en].sub { display: block; }
html:not(.lang-en) .brand [data-en].sub { display: none !important; }
html.lang-en .brand [data-de].sub { display: none !important; }
html.lang-en .brand [data-en].sub { display: block !important; }

/* WP alignments */
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.alignwide { width: min(1280px, 100%); margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 960px) {
  .nav { padding: 16px 20px; grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  section.sts-section, .page-body section { padding: 80px 20px; }
  .hero-content, .credo-grid, .regions-head, .about-grid, .process-head, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .region-grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 40px 1fr; gap: 20px; }
  .process-row > *:nth-child(3), .process-row > *:nth-child(4) { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-body, .page-hero { padding-left: 20px; padding-right: 20px; }
}
