/*
Theme Name: EC Portugal Yacht Charters
Theme URI: https://novo.portugal-yacht-charters.com/
Author: Estrelas e Caravelas
Description: Lightweight marketplace theme for Portugal Yacht Charters.
Version: 0.1.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: ec-pyc-theme
*/

:root {
  --pyc-navy: #061c2b;
  --pyc-navy-soft: #0d3043;
  --pyc-blue: #087d94;
  --pyc-blue-dark: #075f72;
  --pyc-aqua: #8dd5dd;
  --pyc-sand: #f1ece2;
  --pyc-sand-light: #faf8f3;
  --pyc-white: #fff;
  --pyc-ink: #132a36;
  --pyc-muted: #60727a;
  --pyc-line: #dce3e5;
  --pyc-shadow: 0 20px 55px rgba(6, 28, 43, .12);
  --pyc-radius: 18px;
  --pyc-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pyc-ink);
  background: var(--pyc-white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pyc-blue-dark); }
h1, h2, h3, h4 {
  color: var(--pyc-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.025em; }
p { margin-top: 0; }

.pyc-container { width: min(calc(100% - 40px), var(--pyc-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 16px; color: #000; background: #fff; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  color: #fff;
  background: rgba(6, 28, 43, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: inline-flex; flex-direction: column; color: #fff; text-decoration: none; line-height: 1; }
.site-brand__name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; }
.site-brand__tagline { margin-top: 7px; color: var(--pyc-aqua); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: rgba(255, 255, 255, .86); font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #fff; }
.site-nav__cta { display: inline-flex; align-items: center; min-height: 43px; padding: 0 19px; border-radius: 999px; color: #fff !important; background: var(--pyc-blue); }
.nav-toggle { display: none; width: 44px; height: 44px; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

.page-main { min-height: 55vh; }
.home-hero, .page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--pyc-navy) 0%, var(--pyc-navy-soft) 58%, var(--pyc-blue-dark) 100%);
}
.home-hero { padding: clamp(100px, 13vw, 190px) 0; }
.page-hero { padding: clamp(75px, 10vw, 135px) 0 clamp(65px, 8vw, 105px); }
.home-hero::after, .page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; top: -260px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 170px rgba(255,255,255,.018); }
.home-hero__content, .page-hero__content { position: relative; z-index: 1; max-width: 920px; }
.home-hero h1, .page-hero h1 { margin: 14px 0 26px; color: #fff; }
.home-hero p, .page-hero p { max-width: 730px; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.pyc-kicker { margin: 0; color: var(--pyc-aqua) !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pyc-button, .ec-pyc-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; color: #fff !important; background: var(--pyc-blue); font-size: .86rem; font-weight: 750; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.pyc-button:hover, .ec-pyc-button:hover { background: var(--pyc-blue-dark); transform: translateY(-1px); }
.pyc-button--light { color: var(--pyc-navy) !important; background: #fff; }

.page-section { padding: clamp(65px, 8vw, 110px) 0; }
.page-section--sand { background: var(--pyc-sand-light); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 45px; }
.section-heading h2 { max-width: 740px; margin: 8px 0 0; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--pyc-muted); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.trust-card { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--pyc-line); border-radius: var(--pyc-radius); background: #fff; }
.trust-card h3 { margin-top: 0; font-size: 1.4rem; }
.trust-card p { margin-bottom: 0; color: var(--pyc-muted); }
.standard-page { width: min(calc(100% - 40px), 880px); margin-inline: auto; padding: 75px 0 110px; }
.standard-page > h1 { margin: 0 0 38px; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.asset-page { width: min(calc(100% - 40px), var(--pyc-width)); margin-inline: auto; padding: clamp(50px, 7vw, 90px) 0 115px; }

/* EC PYC catalogue plugin */
.ec-pyc-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); }
.ec-pyc-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(6,28,43,.08); border-radius: var(--pyc-radius); box-shadow: var(--pyc-shadow); }
.ec-pyc-card > a { display: block; overflow: hidden; }
.ec-pyc-card > a img { aspect-ratio: 16 / 10; transition: transform .6s ease; }
.ec-pyc-card:hover > a img { transform: scale(1.025); }
.ec-pyc-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(25px, 3vw, 38px); }
.ec-pyc-card h2 { margin: 4px 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ec-pyc-card h2 a { color: inherit; text-decoration: none; }
.ec-pyc-card__body > p:not(.ec-pyc-eyebrow):not(.ec-pyc-meta):not(.ec-pyc-price) { color: var(--pyc-muted); }
.ec-pyc-eyebrow { margin-bottom: 8px; color: var(--pyc-blue-dark); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ec-pyc-meta { color: var(--pyc-muted); font-size: .88rem; }
.ec-pyc-price { margin-top: auto; padding-top: 10px; color: var(--pyc-navy); font-size: 1.2rem; font-weight: 800; }
.ec-pyc-card .ec-pyc-button { margin-top: 4px; }
.ec-pyc-asset { display: grid; gap: 2.6rem; }
.ec-pyc-asset__header { max-width: 940px; padding-bottom: 42px; border-bottom: 1px solid var(--pyc-line); }
.ec-pyc-asset__header h1 { margin: 7px 0 22px; }
.ec-pyc-lead { max-width: 800px; color: var(--pyc-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.ec-pyc-asset__hero { margin: 0; overflow: hidden; border-radius: var(--pyc-radius); }
.ec-pyc-asset__hero img { width: 100%; max-height: 720px; object-fit: cover; }
.ec-pyc-description { max-width: 880px; font-size: 1.05rem; }
.ec-pyc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.ec-pyc-facts div { border-radius: 12px; background: var(--pyc-sand-light); }
.ec-pyc-programs { display: grid; gap: 1rem; margin-top: 20px; }
.ec-pyc-programs > h2 { margin-bottom: 20px; }
.ec-pyc-program { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-color: var(--pyc-line); border-radius: 13px; background: #fff; }
.ec-pyc-program h3 { margin-bottom: 8px; font-family: inherit; font-size: 1.08rem; }
.ec-pyc-program p { margin-bottom: 4px; color: var(--pyc-muted); font-size: .88rem; }
.ec-pyc-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; }
.ec-pyc-gallery figure { margin: 0; overflow: hidden; border-radius: 12px; }
.ec-pyc-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

.site-footer { padding: 68px 0 26px; color: rgba(255,255,255,.7); background: var(--pyc-navy); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 5vw, 70px); padding-bottom: 48px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer h2 { font-size: 1.8rem; }
.site-footer h3 { font-family: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.12); font-size: .77rem; }

@media (max-width: 1000px) {
  .ec-pyc-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-pyc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 72px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 24px 20px 28px; background: var(--pyc-navy); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 17px; }
  .site-nav__cta { margin-top: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .trust-grid, .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .pyc-container, .standard-page, .asset-page { width: min(calc(100% - 28px), var(--pyc-width)); }
  .site-brand__name { font-size: 1.08rem; }
  .site-brand__tagline { font-size: .53rem; }
  .ec-pyc-catalog, .ec-pyc-facts { grid-template-columns: 1fr; }
  .ec-pyc-program { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .site-footer__bottom { flex-direction: column; }
}
