/* ==========================================================================
   Ballyliffin Golf Club — Assets / CSS
   Theme:  ballyliffin-child
   Author: Ballyliffin Golf Club
   Version: 1.0.0
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   --------------------------------------------------------------------------- */
:root {
	/* Colour palette */
	--bally-primary:      #232323;
	--bally-gold-dark:    #8B7144;
	--bally-gold-light:   #CEAC6B;
	--bally-white:        #FFFFFF;
	--bally-cream:        #F5F0E8;
	--bally-border:       #D4CEBD;
	--bally-muted:        #6B6B6B;

	/* Spacing scale: 8 px base */
	--sp-1: 0.25rem;   /* 4 px  */
	--sp-2: 0.5rem;    /* 8 px  */
	--sp-3: 0.75rem;   /* 12 px */
	--sp-4: 1rem;      /* 16 px */
	--sp-5: 1.5rem;    /* 24 px */
	--sp-6: 2rem;      /* 32 px */
	--sp-7: 3rem;      /* 48 px */
	--sp-8: 4rem;      /* 64 px */

	/* Typography */
	--ff-heading: 'Playfair Display', Georgia, serif;
	--ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--fs-xs:   0.75rem;
	--fs-sm:   0.875rem;
	--fs-base: 1rem;
	--fs-lg:   1.125rem;
	--fs-xl:   1.25rem;
	--fs-2xl:  1.5rem;
	--fs-3xl:  2rem;
	--fs-4xl:  2.5rem;
	--fs-5xl:  3.5rem;

	--lh-tight: 1.15;
	--lh-normal: 1.5;
	--lh-relaxed: 1.75;

	/* Layout */
	--w-content: 1220px;
	--w-narrow: 720px;

	/* Transitions */
	--t-fast:   150ms ease;
	--t-base:   300ms ease;

	/* Shadows */
	--shadow-sm:   0 1px 3px rgba(35, 35, 35, 0.08);
	--shadow-md:   0 4px 12px rgba(35, 35, 35, 0.12);
	--shadow-lg:   0 12px 32px rgba(35, 35, 35, 0.16);
}

/* ---------------------------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--bally-primary);
	background-color: var(--bally-cream);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bally-gold-dark);
	text-decoration: none;
	transition: color var(--t-fast);
}

a:hover,
a:focus {
	color: var(--bally-gold-light);
}

ul, ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-heading);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--bally-primary);
	margin-bottom: var(--sp-3);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }
h5 { font-size: var(--fs-lg);  }
h6 { font-size: var(--fs-base); font-weight: 600; }

/* ---------------------------------------------------------------------------
   3. Utility Classes
   --------------------------------------------------------------------------- */
.bally-container {
	max-width: var(--w-content);
	margin: 0 auto;
	padding-inline: var(--sp-4);
}

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

.bally-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ---------------------------------------------------------------------------
   4. Buttons — all square corners
   --------------------------------------------------------------------------- */
.bally-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	min-width: 54px;
	padding: var(--sp-2) var(--sp-6);
	font-family: var(--ff-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--bally-white);
	background-color: var(--bally-gold-dark);
	border: 2px solid var(--bally-gold-dark);
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.bally-btn:hover,
.bally-btn:focus-visible {
	background-color: transparent;
	color: var(--bally-gold-dark);
}

.bally-btn--outline {
	background-color: transparent;
	border: 2px solid var(--bally-gold-dark);
	color: var(--bally-gold-dark);
}

.bally-btn--outline:hover,
.bally-btn--outline:focus-visible {
	background-color: var(--bally-gold-dark);
	color: var(--bally-white);
}

.bally-btn--white {
	background-color: var(--bally-white);
	border-color: var(--bally-white);
	color: var(--bally-primary);
}

.bally-btn--white:hover,
.bally-btn--white:focus-visible {
	background-color: transparent;
	color: var(--bally-white);
}

/* ---------------------------------------------------------------------------
   5. Cards — all square corners
   --------------------------------------------------------------------------- */
.bally-card {
	background-color: var(--bally-white);
	border: 1px solid var(--bally-border);
	border-radius: 0;
	overflow: hidden;
	transition: box-shadow var(--t-base), transform var(--t-base);
}

.bally-card:hover,
.bally-card:focus-within {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.bally-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.bally-card__body {
	padding: var(--sp-5);
}

.bally-card__title {
	font-family: var(--ff-heading);
	font-size: var(--fs-xl);
	margin-bottom: var(--sp-2);
	line-height: var(--lh-tight);
}

.bally-card__excerpt {
	font-size: var(--fs-sm);
	line-height: var(--lh-relaxed);
	color: var(--bally-muted);
	margin-bottom: var(--sp-4);
}

/* ---------------------------------------------------------------------------
   6. Form elements
   --------------------------------------------------------------------------- */
.bally-field {
	margin-bottom: var(--sp-4);
}

.bally-label {
	display: block;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--sp-2);
	color: var(--bally-primary);
}

.bally-input,
.bally-textarea,
.bally-select {
	width: 100%;
	padding: var(--sp-3) var(--sp-4);
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	color: var(--bally-primary);
	background-color: var(--bally-white);
	border: 2px solid var(--bally-border);
	border-radius: 0;
	transition: border-color var(--t-fast);
}

.bally-input:focus-visible,
.bally-textarea:focus-visible,
.bally-select:focus-visible {
	outline: 2px solid var(--bally-gold-dark);
	outline-offset: 2px;
	border-color: var(--bally-gold-dark);
}

.bally-input::placeholder,
.bally-textarea::placeholder {
	color: var(--bally-muted);
}

.bally-textarea {
	height: auto;
	min-height: 120px;
	resize: vertical;
}

/* ---------------------------------------------------------------------------
   7. Section shells
   --------------------------------------------------------------------------- */
.bally-section {
	padding-block: var(--sp-8);
}

.bally-section--dark {
	background-color: var(--bally-primary);
	color: var(--bally-white);
}

.bally-section--dark h1,
.bally-section--dark h2,
.bally-section--dark h3 {
	color: var(--bally-white);
}

.bally-section--dark h4,
.bally-section--dark h5,
.bally-section--dark h6 {
	color: var(--bally-gold-light);
}

.bally-section__heading {
	margin-bottom: var(--sp-6);
}

.bally-section__heading--center {
	text-align: center;
}

/* ---------------------------------------------------------------------------
   8. Labels & Badges
   --------------------------------------------------------------------------- */
.bally-label-tag {
	display: inline-block;
	padding: var(--sp-1) var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background-color: var(--bally-gold-dark);
	color: var(--bally-white);
	border-radius: 0;
}

.bally-label-tag--light {
	background-color: var(--bally-gold-light);
	color: var(--bally-primary);
}

/* ---------------------------------------------------------------------------
   9. Focus styles (accessibility)
   --------------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--bally-gold-dark);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
    10. Reduced motion — WCAG 2.1 SC 2.3.3
    --------------------------------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------
    11. Print baseline
    --------------------------------------------------------------------------- */
@media print {
	.bally-btn,
	.bally-nav,
	.bally-footer {
		display: none;
	}
}
