@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --ws-red: #C8102E;
  --ws-red-dark: #9A0C24;
  --ws-red-light: #E8334D;
  --ws-green: #00543C;
  --ws-green-dark: #003D2A;
  --ws-white: #FFFFFF;
  --ws-cream: #FAF7F2;
  --ws-grey-50: #F6F6F6;
  --ws-grey-100: #ECECEC;
  --ws-grey-200: #D4D4D4;
  --ws-grey-500: #6B6B6B;
  --ws-grey-700: #3A3A3A;
  --ws-black: #1A1A1A;
  --ws-gold: #FFB81C;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 10px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.14);
  --font-body: 'Atkinson Hyperlegible', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ws-grey-700); background: var(--ws-white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ws-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ws-red-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; line-height: 1.2; color: var(--ws-black); margin-bottom: 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 1.8em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); margin-top: 1.4em; }
h4 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin-bottom: 1.1em; }
ul, ol { margin: 0 0 1.1em 1.2em; }
li { margin-bottom: 0.4em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

.site-header { position: sticky; top: 0; background: var(--ws-white); box-shadow: var(--shadow-sm); z-index: 1000; border-bottom: 3px solid var(--ws-red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link:hover { text-decoration: none; }
.logo-img { width: 56px; height: 56px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.3rem; color: var(--ws-red); letter-spacing: -0.3px; }
.logo-text span { font-size: 0.78rem; color: var(--ws-green); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }

.main-nav ul { display: flex; list-style: none; gap: 4px; margin: 0; align-items: center; }
.main-nav a { color: var(--ws-grey-700); font-weight: 700; padding: 10px 12px; border-radius: 6px; font-size: 0.92rem; }
.main-nav a:hover { background: var(--ws-grey-50); color: var(--ws-red); text-decoration: none; }
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown { position: absolute; top: 100%; left: 0; background: var(--ws-white); border: 1px solid var(--ws-grey-100); border-top: 3px solid var(--ws-red); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 260px; padding: 10px; flex-direction: column; display: none; z-index: 1001; }
.main-nav .has-dropdown:hover .dropdown, .main-nav .has-dropdown:focus-within .dropdown { display: flex; }
.main-nav .dropdown li { width: 100%; margin: 0; }
.main-nav .dropdown a { display: block; padding: 8px 12px; font-size: 0.9rem; }
.header-cta { background: var(--ws-red); color: var(--ws-white) !important; padding: 10px 18px !important; border-radius: 6px; }
.header-cta:hover { background: var(--ws-red-dark) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ws-red); margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero { background: linear-gradient(135deg, var(--ws-red) 0%, var(--ws-red-dark) 100%); color: var(--ws-white); padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,184,28,0.18) 0%, transparent 60%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.hero h1 { color: var(--ws-white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; line-height: 1.55; opacity: 0.95; margin-bottom: 28px; }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn { display: inline-block; padding: 14px 28px; font-weight: 700; border-radius: 6px; text-decoration: none !important; transition: all 0.2s ease; cursor: pointer; border: none; font-family: var(--font-body); font-size: 1rem; }
.btn-primary { background: var(--ws-white); color: var(--ws-red); }
.btn-primary:hover { background: var(--ws-gold); color: var(--ws-black); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ws-white); border: 2px solid var(--ws-white); }
.btn-secondary:hover { background: var(--ws-white); color: var(--ws-red); }
.btn-red { background: var(--ws-red); color: var(--ws-white); }
.btn-red:hover { background: var(--ws-red-dark); color: var(--ws-white); transform: translateY(-2px); }
.btn-green { background: var(--ws-green); color: var(--ws-white); }
.btn-green:hover { background: var(--ws-green-dark); color: var(--ws-white); transform: translateY(-2px); }

.trust-strip { background: var(--ws-cream); padding: 24px 0; border-bottom: 1px solid var(--ws-grey-100); }
.trust-strip ul { list-style: none; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.trust-strip li { margin: 0; font-weight: 700; color: var(--ws-green); display: flex; align-items: center; gap: 8px; }
.trust-strip li::before { content: "✓"; color: var(--ws-red); font-size: 1.3rem; font-weight: 700; }

section { padding: 60px 0; }
.section-light { background: var(--ws-grey-50); }
.section-dark { background: var(--ws-black); color: var(--ws-cream); }
.section-dark h2, .section-dark h3 { color: var(--ws-white); }
.section-red { background: var(--ws-red); color: var(--ws-white); }
.section-red h2 { color: var(--ws-white); }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-title h2 { margin-top: 0; }
.section-title p { font-size: 1.1rem; color: var(--ws-grey-500); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card { background: var(--ws-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: all 0.25s ease; display: flex; flex-direction: column; border: 1px solid var(--ws-grey-100); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ws-red); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-top: 0; }
.card-body p { color: var(--ws-grey-500); flex: 1; }
.card-body .card-link { margin-top: 14px; font-weight: 700; color: var(--ws-red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.feature-list { list-style: none; margin: 0 0 1.5em 0; }
.feature-list li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid var(--ws-grey-100); }
.feature-list li::before { content: "☀"; position: absolute; left: 0; top: 12px; color: var(--ws-red); font-size: 1.4rem; }

.faq-item { background: var(--ws-white); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 14px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--ws-red); }
.faq-item h3 { margin-top: 0; font-size: 1.1rem; color: var(--ws-green-dark); }
.faq-item p:last-child { margin-bottom: 0; }

.review { background: var(--ws-cream); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--ws-gold); display: flex; flex-direction: column; }
.review .stars { color: var(--ws-gold); font-size: 1.2rem; margin-bottom: 10px; }
.review blockquote { font-style: italic; margin-bottom: 14px; color: var(--ws-grey-700); flex: 1; }
.review cite { font-weight: 700; color: var(--ws-red); font-style: normal; }

.breadcrumb { background: var(--ws-grey-50); padding: 14px 0; font-size: 0.9rem; border-bottom: 1px solid var(--ws-grey-100); }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; max-width: var(--max-width); margin: 0 auto; padding: 0 22px; gap: 8px; align-items: center; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--ws-grey-500); }
.breadcrumb a { color: var(--ws-red); }
.breadcrumb [aria-current="page"] { color: var(--ws-grey-500); }

.contact-form { background: var(--ws-white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-md); border-top: 6px solid var(--ws-red); }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ws-grey-700); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--ws-grey-200); border-radius: 6px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s ease; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ws-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-message { padding: 14px; border-radius: 6px; margin-bottom: 18px; display: none; }
.contact-form .form-message.success { background: #DFF5E1; color: var(--ws-green-dark); border-left: 4px solid var(--ws-green); display: block; }
.contact-form .form-message.error { background: #FCE4E4; color: var(--ws-red-dark); border-left: 4px solid var(--ws-red); display: block; }

.cta-banner { background: linear-gradient(135deg, var(--ws-green) 0%, var(--ws-green-dark) 100%); color: var(--ws-white); text-align: center; padding: 60px 22px; border-radius: var(--radius); margin: 40px auto; max-width: var(--max-width); }
.cta-banner h2 { color: var(--ws-white); margin-top: 0; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 24px; opacity: 0.95; }

.site-footer { background: var(--ws-black); color: var(--ws-grey-200); padding: 60px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding: 0 22px; }
.footer-grid h4 { color: var(--ws-white); margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ws-grey-200); }
.footer-grid a:hover { color: var(--ws-gold); text-decoration: none; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .logo-text strong { color: var(--ws-white); }
.footer-logo .logo-text span { color: var(--ws-gold); }
.footer-bottom { border-top: 1px solid #333; padding: 22px 0; text-align: center; font-size: 0.85rem; color: var(--ws-grey-500); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease; width: 100%; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { background: rgba(0,0,0,0.75); color: var(--ws-white); padding: 10px 14px; font-size: 0.9rem; position: absolute; bottom: 0; left: 0; right: 0; }

.calculator { background: var(--ws-white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); border-top: 6px solid var(--ws-gold); }
.calculator h3 { margin-top: 0; }
.calc-result { background: var(--ws-green); color: var(--ws-white); padding: 24px; border-radius: var(--radius); margin-top: 22px; text-align: center; display: none; }
.calc-result .big { font-size: 2.4rem; font-weight: 700; display: block; }
.calc-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; margin-top: 14px; }
.calc-result-grid > div span:first-child { font-size: 0.9rem; opacity: 0.8; display: block; }

.cymraeg-banner { background: linear-gradient(135deg, var(--ws-green) 0%, var(--ws-green-dark) 100%); color: var(--ws-white); padding: 40px 0; }
.cymraeg-banner h2 { color: var(--ws-white); margin-top: 0; }

@media (max-width: 960px) {
  .hero-inner, .two-col, .footer-grid, .calc-result-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 50px 0 60px; }
  section { padding: 44px 0; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--ws-white); transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; padding: 20px; box-shadow: var(--shadow-lg); }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--ws-grey-100); }
  .main-nav a { padding: 14px 16px; display: block; }
  .main-nav .dropdown { position: static; display: flex; box-shadow: none; border: none; border-top: 1px solid var(--ws-grey-100); padding-left: 16px; min-width: auto; border-radius: 0; }
  .main-nav .has-dropdown > a::after { content: " ▾"; color: var(--ws-red); }
  .contact-form { padding: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .logo-text strong { font-size: 1.1rem; }
  .logo-text span { font-size: 0.7rem; }
  .header-inner { padding: 0 16px; }
  .hero { padding: 40px 0 50px; }
}

.skip-link { position: absolute; top: -40px; left: 0; background: var(--ws-red); color: var(--ws-white); padding: 8px 14px; z-index: 9999; text-decoration: none; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--ws-gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
