/*
Theme Name: Ceramoda Limited Premium
Theme URI: https://www.ceramoda.co.uk/
Author: Ceramoda Limited
Author URI: https://www.ceramoda.co.uk/
Description: A premium animated WordPress theme for Ceramoda Limited, technical ceramic manufacturing, surface supply and UK-wide distribution.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ceramoda-limited
*/

:root {
  --ink: #202426;
  --ink-soft: #3a3e40;
  --graphite: #111415;
  --stone: #f4efe6;
  --stone-2: #e8dfcf;
  --paper: #fffaf1;
  --white: #ffffff;
  --gold: #c4a06a;
  --gold-dark: #9d7942;
  --taupe: #94856e;
  --line: rgba(32,36,38,.14);
  --shadow: 0 24px 70px rgba(17,20,21,.14);
  --shadow-soft: 0 16px 38px rgba(17,20,21,.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --transition: 260ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196,160,106,.18), transparent 35rem),
    linear-gradient(180deg, #fffaf1 0%, #ffffff 38%, #f7f2ea 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(196,160,106,.28); color: var(--graphite); }

.container { width: min(1180px, calc(100% - 42px)); margin-inline: auto; }
.container.narrow { width: min(900px, calc(100% - 42px)); }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 68px 0; }
.section.dark { background: var(--graphite); color: var(--white); }
.section.surface { background: rgba(255,255,255,.68); }
.section-title { max-width: 760px; margin-bottom: 42px; }
.section-title.center { margin-inline: auto; text-align: center; }
.eyebrow {
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1, h2, h3, h4 { margin: 0 0 18px; line-height: 1.05; color: inherit; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7.4vw, 6.8rem); }
h2 { font-size: clamp(2.35rem, 4.8vw, 4.45rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.65rem); letter-spacing: -.02em; }
p { margin: 0 0 18px; color: rgba(32,36,38,.78); }
.section.dark p, .dark-card p, .hero p, .site-footer p { color: rgba(255,255,255,.76); }
.lead { font-size: clamp(1.05rem, 1.65vw, 1.28rem); max-width: 720px; }
.small { font-size: .94rem; }

.skip-link {
  position: absolute; top: -40px; left: 16px; background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 999;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,250,241,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(32,36,38,.08);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.site-header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(17,20,21,.08); }
.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.logo img { width: 245px; max-width: 54vw; }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.primary-nav a { display: inline-flex; padding: 12px 13px; color: rgba(32,36,38,.78); font-weight: 700; font-size: .93rem; border-radius: 999px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: rgba(196,160,106,.14); color: var(--graphite); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8); color: var(--ink); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: var(--transition); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 999px;
  border: 1px solid rgba(32,36,38,.16);
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(17,20,21,.14); color: inherit; }
.btn-primary { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.btn-primary:hover { color: #fff; background: #000; }
.btn-gold { background: linear-gradient(135deg, #d7bd8c, #aa8147); color: var(--graphite); border: 0; box-shadow: 0 16px 35px rgba(196,160,106,.28); }
.btn-gold:hover { color: var(--graphite); }
.btn-light { background: rgba(255,255,255,.92); color: var(--graphite); }
.btn-ghost { background: transparent; border-color: rgba(32,36,38,.18); }
.section.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.section.dark .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--graphite);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,20,21,.94) 0%, rgba(17,20,21,.72) 45%, rgba(17,20,21,.34) 100%),
    var(--hero-image, none) center/cover no-repeat;
  transform: scale(1.05);
  animation: heroEase 1400ms ease-out forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(196,160,106,.20) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 68%);
  animation: tileDrift 14s linear infinite;
}
@keyframes heroEase { to { transform: scale(1); } }
@keyframes tileDrift { from { background-position: 0 0, 0 0; } to { background-position: 148px 74px, -148px 74px; } }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 122px 0 100px; }
.hero p { font-size: clamp(1.06rem, 1.6vw, 1.25rem); max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; max-width: 760px; margin-top: 54px; }
.stat-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  width: 48px; height: 48px;
  right: -14px; top: -14px;
  transform: rotate(45deg);
  background: rgba(196,160,106,.28);
  border-radius: 9px;
}
.stat-card strong { display: block; font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.stat-card span { display: block; font-size: .88rem; color: rgba(255,255,255,.72); }

.page-hero {
  position: relative;
  padding: 122px 0 84px;
  background: linear-gradient(135deg, rgba(17,20,21,1), rgba(54,50,42,1));
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:-60px; opacity:.18;
  background-image: linear-gradient(45deg, rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(-45deg, rgba(196,160,106,.2) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: tileDrift 18s linear infinite;
}
.page-hero .container { position:relative; z-index:2; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.78); }
.breadcrumb { margin-bottom: 22px; font-size:.92rem; color: rgba(255,255,255,.66); }
.breadcrumb a { color: rgba(255,255,255,.8); }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.align-center { align-items: center; }
.card {
  position: relative;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(32,36,38,.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(196,160,106,.34); }
.card::after {
  content: "";
  position: absolute;
  width: 62px; height: 62px;
  right: -28px; bottom: -28px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(196,160,106,.18), rgba(196,160,106,.02));
  border-radius: 12px;
}
.dark-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.dark-card::after { background: rgba(196,160,106,.24); }
.card-icon { width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; display: grid; place-items: center; background: rgba(196,160,106,.16); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card .tag { display:inline-flex; align-items:center; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-dark); margin-top:8px; }

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72);
  background: var(--stone-2);
}
.image-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-frame.tall img { aspect-ratio: 4 / 5; }
.image-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: calc(var(--radius-xl) - 10px);
  z-index: 2;
  pointer-events: none;
}
.protected-image { position: relative; }
.protected-image .image-shield, .image-frame .image-shield {
  position: absolute; inset: 0; z-index: 5; background: rgba(255,255,255,0); pointer-events: auto;
}

.split-band {
  background: linear-gradient(135deg, #1d2021, #34302a);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  position: relative;
}
.split-band::after { content:""; position:absolute; inset:0; background-image: linear-gradient(45deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 54px 54px; opacity:.25; }
.split-band > * { position:relative; z-index:2; }

.product-tools { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin: 28px 0 34px; }
.search-field {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(32,36,38,.14);
  background: rgba(255,255,255,.84);
  padding: 0 22px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.search-field:focus { border-color: rgba(196,160,106,.65); box-shadow: 0 0 0 4px rgba(196,160,106,.12); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  border: 1px solid rgba(32,36,38,.14);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.product-card { display: flex; flex-direction: column; min-height: 100%; }
.product-card .product-meta { display:flex; gap:8px; flex-wrap:wrap; margin: 14px 0 18px; }
.pill { display:inline-flex; align-items:center; border-radius:999px; padding:6px 10px; font-size:.78rem; font-weight:800; background:rgba(196,160,106,.13); color:#6d542e; }
.product-card .btn { margin-top: auto; align-self:flex-start; }
.no-results { display:none; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.74); }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content:""; position:absolute; left:20px; top:10px; bottom:10px; width:1px; background:rgba(196,160,106,.36); }
.step { position: relative; padding-left: 58px; }
.step::before { content:""; position:absolute; left:10px; top:7px; width:20px; height:20px; border-radius:6px; transform: rotate(45deg); background: linear-gradient(135deg, #d7bd8c, #aa8147); box-shadow:0 0 0 8px rgba(196,160,106,.12); }
.step h3 { margin-bottom: 8px; }

.contact-panels { display: grid; grid-template-columns: .86fr 1.14fr; gap: 28px; align-items: start; }
.contact-card { background: var(--graphite); color:#fff; border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow); }
.contact-card a { color:#fff; text-decoration: underline; text-decoration-color: rgba(196,160,106,.7); text-underline-offset: 4px; }
.contact-list { list-style:none; padding:0; margin: 28px 0; display:grid; gap:18px; }
.contact-list strong { display:block; color: var(--gold); font-size:.78rem; letter-spacing:.14em; text-transform: uppercase; margin-bottom: 4px; }
.form-wrap { background: rgba(255,255,255,.78); border:1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-soft); }
.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.form-field.full { grid-column: 1 / -1; }
label { display:block; font-weight:800; margin-bottom:7px; color: var(--ink); }
input, textarea, select { width:100%; border:1px solid rgba(32,36,38,.14); background:#fff; border-radius: 16px; padding:14px 15px; outline:none; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(196,160,106,.65); box-shadow:0 0 0 4px rgba(196,160,106,.12); }
.form-notice { padding:14px 16px; border-radius: 16px; margin-bottom:18px; font-weight:700; }
.form-notice.success { background:rgba(47,126,83,.12); color:#1f6c45; }
.form-notice.error { background:rgba(180,55,55,.12); color:#923131; }
.map-frame { border:0; width:100%; min-height: 360px; border-radius: var(--radius-lg); filter:saturate(.8); }

.legal-content { background: rgba(255,255,255,.76); border:1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(26px, 5vw, 54px); box-shadow: var(--shadow-soft); }
.legal-content h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); margin-top: 28px; }
.legal-content ul { color:rgba(32,36,38,.78); }

.cta-ribbon { position: relative; margin: 36px auto 0; }
.cta-ribbon .split-band { display:grid; grid-template-columns: 1fr auto; align-items:center; gap: 22px; }

.site-footer { background: #111415; color: #fff; padding: 72px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 34px; }
.footer-logo img { width: 240px; margin-bottom: 22px; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.site-footer a { color:rgba(255,255,255,.78); }
.site-footer a:hover { color:#fff; }
.site-footer h3 { font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing:.13em; margin-bottom: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; color:rgba(255,255,255,.58); font-size:.92rem; }
.footer-bottom a { color:rgba(255,255,255,.72); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity:0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.stagger.is-visible > * { opacity:1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .48s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .56s; }

.tile-motion {
  position:absolute;
  width: 150px; height:150px;
  border-radius: 28px;
  border:1px solid rgba(196,160,106,.25);
  transform: rotate(45deg);
  pointer-events:none;
  opacity:.24;
  animation: floatTile 8s ease-in-out infinite;
}
.tile-motion.one { right: 8%; top: 18%; }
.tile-motion.two { right: 22%; bottom: 15%; width:82px; height:82px; animation-delay: -2s; }
@keyframes floatTile { 0%,100% { transform: rotate(45deg) translate3d(0,0,0); } 50% { transform: rotate(45deg) translate3d(12px,-18px,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-tools { grid-template-columns: 1fr; }
  .contact-panels { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .logo img { width: 210px; }
  .menu-toggle { display:block; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    background: rgba(255,250,241,.98);
    border-bottom:1px solid var(--line);
    padding: 18px 21px 24px;
    box-shadow: 0 22px 45px rgba(17,20,21,.12);
  }
  body.nav-open .primary-nav { display:block; }
  .primary-nav ul { display:grid; align-items:stretch; gap:6px; }
  .primary-nav a { width: 100%; padding: 13px 16px; }
  .header-actions .btn { display:none; }
  .hero { min-height: 690px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .cta-ribbon .split-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container.narrow { width: min(100% - 30px, 1180px); }
  .section { padding: 72px 0; }
  .hero-content { padding: 86px 0 74px; }
  .page-hero { padding: 94px 0 68px; }
  .grid.four { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display:grid; }
  .hero-actions { display:grid; }
  .hero-actions .btn { width: 100%; }
  .card, .form-wrap, .contact-card { padding: 23px; }
}
