/*
Theme Name: TFCX
Theme URI: https://thefullcubanexperience.com
Author: The Full Cuban Experience
Description: Responsive brand theme for The Full Cuban Experience.
Version: 0.3.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: tfcx
*/

:root {
  /* Cuban national palette */
  --tfcx-blue: #002A8F;
  --tfcx-blue-deep: #071D55;
  --tfcx-blue-soft: #EAF0FC;
  --tfcx-red: #CF142B;
  --tfcx-red-dark: #A90F22;
  --tfcx-white: #FFFFFF;
  /* Supporting luxury neutrals */
  --tfcx-ivory: #FAF8F2;
  --tfcx-gold: #C9A45C;
  --ink: #17243A;
  --muted: #5E6878;
  --paper: var(--tfcx-ivory);
  --line: #E4E7EE;
  --white: var(--tfcx-white);
  --blue: var(--tfcx-blue);
  --turq: var(--tfcx-blue);
  --gold: var(--tfcx-gold);
  --coral: var(--tfcx-red);
  --radius: 20px;
  --shadow: 0 18px 50px rgba(7,29,85,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--tfcx-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }

/* Consistent Cuban flag link colours and accessible interaction states */
a, a:link { color: var(--tfcx-blue); text-underline-offset: 4px; }
a:visited { color: var(--tfcx-red-dark); }
a:hover { color: var(--tfcx-red); }
a:focus, a:focus-visible { color: var(--tfcx-blue-deep); outline: 2px solid var(--tfcx-red); outline-offset: 3px; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 5;
  background: var(--tfcx-blue);
  border-bottom: 4px solid var(--tfcx-red);
}
.header-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding a {
  color: var(--tfcx-white);
  font-weight: 850;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.site-branding a:visited { color: var(--tfcx-white); }
.site-branding a:hover { color: #F4DCA9; }
.site-branding .custom-logo { max-height: 58px; width: auto; }
.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--tfcx-white);
  text-decoration: none;
  font-size: .91rem;
  font-weight: 650;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-navigation a:visited { color: var(--tfcx-white); }
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--tfcx-white);
  border-bottom-color: var(--tfcx-red);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--tfcx-white);
  background: linear-gradient(115deg, rgba(7,29,85,.98), rgba(0,42,143,.94)), radial-gradient(circle at 80% 20%, rgba(207,20,43,.28), transparent 38%);
  border-bottom: 6px solid var(--tfcx-red);
  padding: clamp(78px, 11vw, 150px) 0;
}
.hero-inner { max-width: 900px; }
.eyebrow {
  color: #F0D69F;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 850;
  font-size: .76rem;
}
.hero h1 {
  color: var(--tfcx-white);
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: .65rem 0 1.25rem;
  max-width: 900px;
}
.hero p { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 760px; color: rgba(255,255,255,.92); margin-bottom: 28px; }

/* Buttons and calls to action */
.button, button, input[type=submit], .wp-element-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tfcx-red);
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--tfcx-red);
  color: var(--tfcx-white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:link, .button:visited, .wp-element-button:link, .wp-element-button:visited, .wp-block-button__link:link, .wp-block-button__link:visited { color: var(--tfcx-white); }
.button:hover, button:hover, input[type=submit]:hover, .wp-element-button:hover, .wp-block-button__link:hover {
  background: var(--tfcx-blue-deep);
  border-color: var(--tfcx-blue-deep);
  color: var(--tfcx-white);
  transform: translateY(-1px);
}
.button:focus-visible, button:focus-visible, input[type=submit]:focus-visible, .wp-element-button:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--tfcx-gold); outline-offset: 3px; }
.button.secondary { background: var(--tfcx-white); color: var(--tfcx-blue); border-color: var(--tfcx-white); margin-left: 8px; }
.button.secondary:visited { color: var(--tfcx-blue); }
.button.secondary:hover { background: var(--tfcx-red); color: var(--tfcx-white); border-color: var(--tfcx-red); }

/* Content sections */
.section { padding: clamp(54px, 7vw, 92px) 0; }
.section.soft { background: var(--tfcx-ivory); border-top: 1px solid #F0EBDD; border-bottom: 1px solid #F0EBDD; }
.section.dark { background: var(--tfcx-blue-deep); color: var(--tfcx-white); border-top: 5px solid var(--tfcx-red); }
.section h2 { color: var(--tfcx-blue); font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 16px; }
.section.dark h2 { color: var(--tfcx-white); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 790px; }
.section.dark .lead { color: #E0E7F5; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.card { background: var(--tfcx-white); border: 1px solid var(--line); border-top: 3px solid var(--tfcx-blue); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); }
.card:nth-child(3n+2) { border-top-color: var(--tfcx-red); }
.card h3 { color: var(--tfcx-blue); margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card a { font-weight: 750; }
.kicker { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--tfcx-red); font-weight: 850; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-block; border: 1px solid #CCD7F0; border-radius: 999px; padding: 7px 13px; color: var(--tfcx-blue); background: var(--tfcx-white); font-weight: 650; font-size: .9rem; }
.content-area { padding: 56px 0 84px; background: var(--tfcx-white); }
.entry-title { color: var(--tfcx-blue); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -.04em; }
.entry-content { max-width: 850px; }
.entry-content h2, .entry-content h3 { color: var(--tfcx-blue); line-height: 1.2; }
.entry-content p, .entry-content li { color: #425064; }
.cta-band { padding: 34px; border-radius: var(--radius); background: linear-gradient(120deg, var(--tfcx-blue-deep), var(--tfcx-blue)); border-left: 6px solid var(--tfcx-red); color: var(--tfcx-white); margin-top: 28px; }
.cta-band h2 { color: var(--tfcx-white) !important; }
.cta-band p { color: #E7ECF8; }

/* Footer */
.site-footer { background: var(--tfcx-blue-deep); color: #E3E9F6; border-top: 6px solid var(--tfcx-red); padding: 46px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.site-footer a, .site-footer a:link, .site-footer a:visited { color: var(--tfcx-white); }
.site-footer a:hover { color: #F0D69F; }
.footer-small { color: #C5D0E8; font-size: .88rem; margin-top: 18px; }

/* Forms and notices */
.tfcx-form { display: grid; gap: 14px; max-width: 700px; }
.tfcx-form label { display: grid; gap: 6px; font-weight: 650; }
.tfcx-form input, .tfcx-form textarea, .tfcx-form select { width: 100%; padding: 12px 14px; border: 1px solid #C8D1E2; border-radius: 10px; font: inherit; }
.tfcx-form input:focus, .tfcx-form textarea:focus, .tfcx-form select:focus { outline: 2px solid var(--tfcx-blue); outline-offset: 2px; border-color: var(--tfcx-blue); }
.tfcx-notice { padding: 14px 16px; border-radius: 12px; background: var(--tfcx-blue-soft); border: 1px solid #C9D6F2; }
.notice { padding: 16px 18px; background: #FFF8E9; border-left: 4px solid var(--tfcx-gold); border-radius: 8px; color: #5A4B2E; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 17px 0; }
  .main-navigation ul { justify-content: flex-start; gap: 10px 15px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .button.secondary { margin: 10px 0 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 76px 0; }
  .header-inner, .container { width: min(100% - 30px, 1160px); }
}
