/* ==========================================================================
   Galleria De Rings: base styles (light theme)
   Navy #0B132A and warm off-white #F7F5F1. EB Garamond headings, Source Sans 3 text.
   Section styles will be added as we build each section.
   ========================================================================== */

/* 1. Fonts (self-hosted, variable weight, SIL Open Font License) */
@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	font-style: italic;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext: includes the rupee sign ₹ (U+20B9) */
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design tokens */
:root {
	--g-navy: #0b132a;
	--g-cream: #f7f5f1; /* warm off-white */
	--g-white: #fff;
	--g-text: #5c6070;
	--g-line: #e5dacb;
	--g-navy-hover: #1c2847;
	--g-sapphire: #1e3358; /* home: hero video fades into this blue (Shop by Category band) */

	--g-font-heading: "EB Garamond", Garamond, Georgia, serif;
	--g-font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

	--g-container: 1240px;
	--g-container-narrow: 760px;
	--g-gutter: clamp(16px, 4vw, 32px);
	--g-radius: 2px;

	/* Colours used by the Galleria Catalog plugin (WhatsApp button, ₹/$ switch). */
	--gdr-accent: var(--g-navy);
	--gdr-accent-contrast: var(--g-cream);
}

/* 3. Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Sideways overflow is cut on <body> only. Setting overflow-x on both <html>
   and <body> turns <body> into its own scroll box: phones then let the page
   drift sideways or show it wider than the screen, so the fixed header loses
   its right side (icons) or vanishes while scrolling. "clip" cuts without
   making a scroll box; "hidden" is the fallback for old browsers. */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--g-white);
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

/* 4. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .5em;
	color: var(--g-navy);
	font-family: var(--g-font-heading);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -.005em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
	margin: 0 0 1.1em;
}

/* Small uppercase label, e.g. "TRADITIONAL - 22KT GOLD" */
.eyebrow {
	display: block;
	margin-bottom: .9em;
	color: var(--g-text);
	font-family: var(--g-font-body);
	font-size: .95rem;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* Larger intro paragraph */
.lead {
	font-size: 1.2rem;
	line-height: 1.6;
}

a {
	color: var(--g-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

a:hover {
	color: var(--g-navy-hover);
}

:focus-visible {
	outline: 2px solid var(--g-navy);
	outline-offset: 2px;
}

::selection {
	background: var(--g-navy);
	color: var(--g-cream);
}

/* 5. Layout */
.container {
	width: 100%;
	max-width: var(--g-container);
	margin-inline: auto;
	padding-inline: var(--g-gutter);
}

.container--narrow {
	max-width: var(--g-container-narrow);
}

.site-main {
	min-height: 60vh;
	padding-block: 2.5rem 4rem;
}

.section--cream {
	background: var(--g-cream);
}

/* 6–7. Header and navigation live in assets/css/header.css */

/* 8. Footer lives in assets/css/footer.css */

/* 9. Buttons and forms */
.button,
button,
input[type="submit"] {
	display: inline-block;
	padding: .8em 1.9em;
	border: 1px solid var(--g-navy);
	border-radius: var(--g-radius);
	background: var(--g-navy);
	color: var(--g-cream);
	font: inherit;
	font-size: .9rem;
	font-weight: 500;
	letter-spacing: .1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--g-navy-hover);
	color: var(--g-cream);
}

.button--outline {
	background: transparent;
	color: var(--g-navy);
}

.button--outline:hover {
	background: var(--g-navy);
	color: var(--g-cream);
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	padding: .65em .85em;
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius);
	background: var(--g-white);
	color: var(--g-navy);
	font: inherit;
}

/* 10. Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .75em 1.25em;
	clip: auto;
	clip-path: none;
	background: var(--g-white);
	color: var(--g-navy);
}

/* 11. WooCommerce: base typography and colours (full shop design comes later) */
.woocommerce .page-title,
.woocommerce div.product .product_title {
	color: var(--g-navy);
	font-family: var(--g-font-heading);
	font-weight: 400;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--g-navy);
	font-family: var(--g-font-heading);
	font-size: 1.3rem;
	font-weight: 400;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--g-navy);
	font-family: var(--g-font-body);
	font-weight: 500;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
	color: var(--g-text);
	opacity: .7;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
	text-decoration: none;
}

.woocommerce span.onsale {
	min-width: 0;
	min-height: 0;
	padding: .35em .8em;
	border-radius: var(--g-radius);
	background: var(--g-navy);
	color: var(--g-cream);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
	color: var(--g-text);
	font-size: .85rem;
}

.woocommerce div.product .product_meta {
	color: var(--g-text);
	font-size: .9rem;
}

/* Divider between home page sections (template-parts/sections/section-divider.php):
   one plain hairline across the page, with the same side padding as the
   full-width sections. No icon or ornament. */
.section-divider {
	padding: 0 clamp(16px, 4vw, 64px);
}

.section-divider__line {
	display: block;
	height: 1px;
	background: #e3e5ec;
}
