/* Cherry Call theme styles. Mobile first. Inter Medium as the base weight. */

:root {
	--cc-red: #a5121f;
	--cc-red-dark: #6e0a12;
	--cc-red-deep: #4d0810;
	--cc-red-tint: #fbf0f0;
	--cc-green: #3f8f3f;
	--cc-green-tint: #eef7ec;
	--cc-ink: #1f1a1b;
	--cc-ink-soft: #5c5254;
	--cc-line: #e8dede;
	--cc-paper: #ffffff;
	--cc-paper-soft: #faf6f6;
	--cc-radius: 14px;
	--cc-shadow: 0 8px 30px rgba(77, 8, 16, 0.08);
	--cc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cc-font);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cc-ink);
	background: var(--cc-paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--cc-red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cc-red-dark); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
button, input, select { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.cc-container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.cc-skip { position: absolute; left: -999px; top: 8px; background: var(--cc-ink); color: #fff; padding: 8px 12px; z-index: 100; }
.cc-skip:focus { left: 8px; }

/* Buttons */
.cc-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
}
.cc-button--primary { background: var(--cc-red); color: #fff; }
.cc-button--primary:hover { background: var(--cc-red-dark); color: #fff; }
.cc-button--ghost { background: transparent; color: var(--cc-red); border-color: var(--cc-red); }
.cc-button--ghost:hover { background: var(--cc-red-tint); }
.cc-hero .cc-button--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cc-hero .cc-button--ghost:hover { background: rgba(255,255,255,.12); }

/* Header */
.cc-header { background: var(--cc-paper); border-bottom: 1px solid var(--cc-line); position: sticky; top: 0; z-index: 50; }
.cc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.cc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cc-red-dark); font-weight: 800; font-size: 1.25rem; }
.cc-logo img { width: 48px; height: auto; }
.cc-logo__text { display: none; }
.cc-nav-toggle { background: none; border: 0; padding: 8px; display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; }
.cc-nav-toggle__bar { width: 24px; height: 3px; background: var(--cc-red-dark); border-radius: 2px; }
.cc-nav { display: none; width: 100%; padding-bottom: 12px; }
.cc-nav.is-open { display: block; }
.cc-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-nav__list a { display: block; padding: 10px 6px; text-decoration: none; color: var(--cc-ink); font-weight: 700; border-radius: 8px; }
.cc-nav__list a:hover, .cc-nav__list .current-menu-item > a { background: var(--cc-red-tint); color: var(--cc-red-dark); }
.cc-nav__account { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (min-width: 900px) {
	.cc-logo__text { display: inline; }
	.cc-nav-toggle { display: none; }
	.cc-nav { display: flex; width: auto; align-items: center; gap: 20px; padding: 0; }
	.cc-nav__list { flex-direction: row; gap: 4px; }
	.cc-nav__account { margin: 0; }
}

/* Hero */
.cc-hero { background: linear-gradient(135deg, var(--cc-red-deep), var(--cc-red) 70%, #c21e2c); color: #fff; padding: 36px 0 44px; }
.cc-hero h1 { color: #fff; }
.cc-hero__lead { font-size: 1.15rem; max-width: 52ch; margin-bottom: 1.2em; color: rgba(255,255,255,.92); }
.cc-hero__lead strong { color: #fff; }
.cc-hero__row { display: flex; align-items: flex-start; gap: 20px; }
.cc-hero__row .cc-flag { flex: none; border: 3px solid rgba(255,255,255,.35); }
.cc-hero__select { max-width: 640px; }
.cc-hero--home { padding: 56px 0 64px; }
.cc-hero--free { background: linear-gradient(135deg, #1f4d25, var(--cc-green) 70%, #57a84c); }
.cc-hero--page { padding: 28px 0 36px; }
.cc-flag { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.18); background: #fff; }

/* Breadcrumbs */
.cc-breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; opacity: .9; }
.cc-breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.cc-breadcrumbs a { color: inherit; }

/* Sections */
.cc-section { padding: 40px 0; }
.cc-section--tint { background: var(--cc-paper-soft); }
.cc-section--cards { margin-top: -28px; padding-top: 0; }
.cc-section__title { text-align: center; margin-bottom: 24px; }
.cc-section--smallprint { padding: 16px 0 40px; }

/* Cards */
.cc-cards { display: grid; gap: 16px; }
.cc-card {
	background: var(--cc-paper); border: 1px solid var(--cc-line); border-radius: var(--cc-radius);
	padding: 22px; box-shadow: var(--cc-shadow); display: flex; flex-direction: column; gap: 10px;
}
.cc-card--primary { border-color: var(--cc-red); border-width: 2px; }
.cc-card--free { background: var(--cc-green-tint); border-color: #cfe6c8; }
.cc-card__eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cc-red); font-weight: 700; }
.cc-card--free .cc-card__eyebrow { color: var(--cc-green); }
.cc-card__title { margin: 0; }
.cc-card__note { font-size: .9rem; color: var(--cc-ink-soft); margin: 0; }
.cc-card .cc-button { align-self: flex-start; margin-top: auto; }
.cc-price-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 6px 0; }
.cc-price { display: flex; flex-direction: column; }
.cc-price__value { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--cc-red-dark); }
.cc-price__label { font-size: .85rem; color: var(--cc-ink-soft); }
.cc-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.cc-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cc-ticks li::before { content: "\2713"; color: var(--cc-green); font-weight: 800; margin-right: 8px; }
.cc-dial { font-size: 1.05rem; margin: 0; }
.cc-dial__number { font-weight: 800; font-size: 1.35rem; white-space: nowrap; color: var(--cc-red-dark); text-decoration: none; }
.cc-hero .cc-dial__number { color: #fff; }
.cc-dial--hero { font-size: 1.15rem; }
.cc-tel { white-space: nowrap; }
@media (min-width: 760px) {
	.cc-cards { grid-template-columns: repeat(2, 1fr); }
	.cc-cards--three { grid-template-columns: repeat(3, 1fr); }
	.cc-section--cards .cc-cards { grid-template-columns: 1.15fr 1fr; }
	.cc-section--cards .cc-card--free { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
	.cc-section--cards .cc-cards { grid-template-columns: 1.15fr 1fr 0.8fr; }
	.cc-section--cards .cc-card--free { grid-column: auto; }
}

/* Guides */
.cc-guide__meta { font-size: .9rem; opacity: .85; margin: 0; }
.cc-guide h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.cc-guide-card { text-decoration: none; color: inherit; }
.cc-guide-card:hover { border-color: var(--cc-red); }
.cc-guide-card .cc-card__title { font-size: 1.15rem; }
.cc-guide-card__more { color: var(--cc-red); font-weight: 700; margin-top: auto; }
.cc-guide-card__more::after { content: " \2192"; }
.pagination .nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

/* Country select / combobox */
.cc-country-select__label { display: block; font-weight: 700; margin-bottom: 8px; }
.cc-country-select__row { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-combobox { position: relative; flex: 1 1 260px; }
.cc-combobox__input, .cc-combobox__native {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--cc-line); background: #fff; color: var(--cc-ink);
}
.cc-combobox__input:focus, .cc-combobox__native:focus { outline: none; border-color: var(--cc-red); box-shadow: 0 0 0 3px rgba(165,18,31,.15); }
.cc-combobox.is-enhanced .cc-combobox__native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cc-combobox__list {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 6px; list-style: none;
	background: #fff; color: var(--cc-ink); border: 1px solid var(--cc-line); border-radius: 10px; box-shadow: var(--cc-shadow);
	max-height: 280px; overflow: auto;
}
.cc-combobox__list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cc-combobox__list li:hover, .cc-combobox__list li[aria-selected="true"] { background: var(--cc-red-tint); }
.cc-combobox__list img { width: 22px; height: 22px; border-radius: 50%; }
.cc-combobox__list .cc-combobox__empty { color: var(--cc-ink-soft); cursor: default; }
.cc-selector h2 { text-align: center; }
.cc-selector .cc-country-select { max-width: 640px; margin-inline: auto; }

/* Top destinations */
.cc-top-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cc-top-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--cc-line); border-radius: 12px; text-decoration: none; color: var(--cc-ink); background: #fff; }
.cc-top-list a:hover { border-color: var(--cc-red); box-shadow: var(--cc-shadow); }
.cc-top-list .cc-flag { width: 32px; height: 32px; }
.cc-top-list__name { font-weight: 700; flex: 1; }
.cc-top-list__rate { font-size: .85rem; color: var(--cc-red-dark); white-space: nowrap; }
@media (min-width: 640px) { .cc-top-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cc-top-list { grid-template-columns: repeat(4, 1fr); } }

/* Free-calls grid */
.cc-grid-filter { max-width: 420px; margin: 0 auto 20px; }
.cc-grid-filter label { display: block; font-weight: 700; margin-bottom: 6px; }
.cc-grid-filter input, .cc-rates__filter input { width: 100%; padding: 12px 14px; border: 2px solid var(--cc-line); border-radius: 10px; }
.cc-free-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cc-free-grid a { display: block; padding: 10px 12px; border: 1px solid var(--cc-line); border-radius: 10px; text-decoration: none; color: var(--cc-ink); font-weight: 700; background: #fff; }
.cc-free-grid a:hover { border-color: var(--cc-green); background: var(--cc-green-tint); }
.cc-free-grid li[hidden] { display: none; }
@media (min-width: 640px) { .cc-free-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cc-free-grid { grid-template-columns: repeat(5, 1fr); } }

/* Prose (migrated content) */
.cc-prose { max-width: 76ch; }
.cc-prose h2, .cc-prose h3 { margin-top: 1.4em; }
.cc-prose h2:first-child, .cc-prose h3:first-child { margin-top: 0; }
.cc-prose img.alignright, .cc-prose img.alignleft { max-width: 140px; border-radius: 12px; margin: 0 0 12px 16px; float: right; }
.cc-prose img.alignleft { float: left; margin: 0 16px 12px 0; }
.cc-prose .panel-highlight-left, .cc-prose .panel-highlight { background: var(--cc-red-tint); border-left: 4px solid var(--cc-red); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1em 0; }
.cc-prose .h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cc-prose--small { font-size: .9rem; color: var(--cc-ink-soft); }
.cc-prose table, .cc-table { display: block; overflow-x: auto; font-size: .95rem; margin: 1em 0; }
.cc-prose table th, .cc-prose table td, .cc-table th, .cc-table td { padding: 8px 10px; border-bottom: 1px solid var(--cc-line); text-align: left; vertical-align: top; }
.cc-prose table thead th, .cc-table thead th { background: var(--cc-paper-soft); font-weight: 700; }
.cc-prose table tbody th { font-weight: 700; }
.cc-prose .cc-table-caption { font-weight: 700; margin: 1.2em 0 .4em; }

/* Rates table */
.cc-rates__filter { max-width: 420px; margin: 0 0 16px; }
.cc-rates__filter label { display: block; font-weight: 700; margin-bottom: 6px; }
.cc-rates__letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.cc-rates__letters a { display: inline-block; min-width: 32px; text-align: center; padding: 6px 4px; border: 1px solid var(--cc-line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.cc-rates__letter { margin: 1.5em 0 .3em; color: var(--cc-red-dark); }
.cc-table--rates { display: table; }
.cc-table--rates tr[hidden] { display: none; }
.cc-rates__note { font-size: .9rem; color: var(--cc-ink-soft); margin-top: 1.5em; }
@media (max-width: 640px) {
	.cc-table--rates thead { display: none; }
	.cc-table--rates tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--cc-line); }
	.cc-table--rates th[scope="row"] { grid-column: 1 / -1; border: 0; padding: 0; }
	.cc-table--rates td { border: 0; padding: 0; font-size: .9rem; }
	.cc-table--rates td:nth-child(2)::before { content: "Prepaid: "; color: var(--cc-ink-soft); }
	.cc-table--rates td:nth-child(3)::before { content: "Instant: "; color: var(--cc-ink-soft); }
	.cc-table--rates td:nth-child(4)::before { content: "Dial: "; color: var(--cc-ink-soft); }
	.cc-table--rates td:nth-child(5)::before { content: "BT: "; color: var(--cc-ink-soft); }
}

/* FAQ / small print */
.cc-faq details, .cc-smallprint { border: 1px solid var(--cc-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
.cc-faq summary, .cc-smallprint summary { font-weight: 700; cursor: pointer; }
.cc-faq p { margin: 10px 0 0; }
.cc-smallprint .cc-prose { margin-top: 10px; }

/* Footer */
.cc-footer { background: var(--cc-red-deep); color: rgba(255,255,255,.85); margin-top: 40px; padding: 40px 0 24px; font-size: .95rem; }
.cc-footer a { color: #fff; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-footer__grid { display: grid; gap: 28px; }
.cc-footer__heading { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.cc-footer__brand img { width: 48px; }
.cc-footer__legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: rgba(255,255,255,.7); }
@media (min-width: 760px) { .cc-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Section accents for free-calls pages */
.cc-section-free .cc-card--primary { border-color: var(--cc-green); }
.cc-section-free .cc-card__eyebrow { color: var(--cc-green); }
.cc-section-free .cc-dial__number { color: #1f4d25; }
.cc-section-free .cc-button--primary { background: var(--cc-green); }
.cc-section-free .cc-button--ghost { color: var(--cc-green); border-color: var(--cc-green); }
