/* ========================================
   SPRING LEGACY HOME ADVISORS
   Foundation CSS - Your Design System
   ======================================== */

/* ========================================
   CSS RESET
   ======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ========================================
   FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES - YOUR DESIGN SYSTEM
   ======================================== */
:root {
	/* ===== COLORS ===== */
	
	/* Main Brand Colors */
	--color-cream: #FCEEE3;        /* Warm background */
	--color-red: #DD0000;          /* Primary CTA, links */
	--color-black: #000000;        /* Main text */
	
	/* Secondary Colors */
	--color-gray-light: #DFE1E5;   /* Subtle backgrounds */
	--color-terracotta: #C65D3B;   /* Warm accent */
	--color-taupe: #8B7865;        /* Warm neutral */
	
	/* Tertiary Colors */
	--color-off-white: #F8F8F8;    /* Lightest backgrounds */
	--color-green: #2E7D32;        /* Success states */
	--color-gray-dark: #333333;    /* Secondary text */
	--color-gray-medium: #666666;  /* Muted text, borders */
	
	/* White */
	--color-white: #FFFFFF;
	
	/* ===== SPACING SCALE (8px system) ===== */
	--space-xs: 0.5rem;    /* 8px */
	--space-sm: 1rem;      /* 16px */
	--space-md: 1.5rem;    /* 24px */
	--space-lg: 2rem;      /* 32px */
	--space-xl: 3rem;      /* 48px */
	--space-2xl: 4rem;     /* 64px */
	--space-3xl: 6rem;     /* 96px */
	
	/* ===== TYPOGRAPHY SCALE ===== */
	--text-xs: 0.75rem;    /* 12px */
	--text-sm: 0.875rem;   /* 14px */
	--text-base: 1rem;     /* 16px */
	--text-lg: 1.125rem;   /* 18px */
	--text-xl: 1.25rem;    /* 20px */
	--text-2xl: 1.5rem;    /* 24px */
	--text-3xl: 2rem;      /* 32px */
	--text-4xl: 2.5rem;    /* 40px */
	--text-5xl: 3rem;      /* 48px */
	--text-6xl: 3.75rem;   /* 60px */
	
	/* ===== LINE HEIGHTS (unitless) ===== */
	--leading-none: 1;
	--leading-tight: 1.25;
	--leading-snug: 1.375;
	--leading-normal: 1.5;
	--leading-relaxed: 1.625;
	--leading-loose: 2;
	
	/* ===== BORDER RADIUS ===== */
	--radius-sm: 0.25rem;   /* 4px */
	--radius-md: 0.5rem;    /* 8px */
	--radius-lg: 0.75rem;   /* 12px - your preference */
	--radius-xl: 1rem;      /* 16px */
	--radius-full: 9999px;  /* circles */
	
	/* ===== CONTAINER WIDTHS ===== */
	--container-sm: 95%;
	--container-md: 90%;
	--container-lg: 85%;
	--container-max: 1280px; /* Your Figma design width */
	
	/* ===== SHADOWS (optional - add later if needed) ===== */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	
	/* ===== TRANSITIONS ===== */
	--transition-fast: 150ms ease-in-out;
	--transition-base: 300ms ease-in-out;
	--transition-slow: 500ms ease-in-out;
}

/* ========================================
   BREAKPOINTS (for reference)
   Mobile:  0-767px    (default, no media query)
   Tablet:  768-1023px (@media min-width: 768px)
   Desktop: 1024px+    (@media min-width: 1024px)
   ======================================== */

/* ========================================
   BASE STYLES
   ======================================== */
html {
	font-size: 16px;  /* 1rem = 16px */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-black);
	background-color: var(--color-white);
	font-weight: 400;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Container - centers and constrains width */
.container {
	width: var(--container-sm);
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-sm);
	padding-right: var(--space-sm);
}

@media (min-width: 768px) {
	.container {
		width: var(--container-md);
		padding-left: var(--space-md);
		padding-right: var(--space-md);
	}
}

@media (min-width: 1024px) {
	.container {
		width: var(--container-lg);
	}
}

/* Section - vertical spacing */
.section {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
	.section {
		padding-top: var(--space-2xl);
		padding-bottom: var(--space-2xl);
	}
}

/* Grid system */
.grid {
	display: grid;
	gap: var(--space-md);
}

.grid-2 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.grid-3 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.grid-4 {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Flex utilities */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-center {
	align-items: center;
	justify-content: center;
}

.flex-between {
	align-items: center;
	justify-content: space-between;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ========================================
   TYPOGRAPHY BASE STYLES
   ======================================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: var(--leading-tight);
	margin-bottom: var(--space-md);
}

h1 {
	font-size: var(--text-3xl);
}

h2 {
	font-size: var(--text-2xl);
}

h3 {
	font-size: var(--text-xl);
}

h4 {
	font-size: var(--text-lg);
}

h5, h6 {
	font-size: var(--text-base);
}

@media (min-width: 768px) {
	h1 {
		font-size: var(--text-4xl);
	}
	
	h2 {
		font-size: var(--text-3xl);
	}
	
	h3 {
		font-size: var(--text-2xl);
	}
}

@media (min-width: 1024px) {
	h1 {
		font-size: var(--text-5xl);
	}
}

p {
	margin-bottom: var(--space-md);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--color-red);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover {
	color: var(--color-terracotta);
}

/* ========================================
   BUTTON BASE STYLES
   ======================================== */
.btn {
	display: inline-block;
	padding: var(--space-sm) var(--space-lg);
	font-size: var(--text-base);
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition-base);
	text-decoration: none;
	font-family: inherit;
}

@media (min-width: 1024px) {
	.btn {
		border-radius: var(--radius-lg); /* 12px on desktop */
	}
}

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

.btn--primary:hover {
	background-color: #b30000; /* Slightly darker red */
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn--secondary {
	background-color: transparent;
	color: var(--color-red);
	border: 2px solid var(--color-red);
}

.btn--secondary:hover {
	background-color: var(--color-red);
	color: var(--color-white);
}

.btn--large {
	padding: var(--space-sm) var(--space-lg);
	font-size: var(--text-md);
}

.btn--small {
	padding: var(--space-xs) var(--space-md);
	font-size: var(--text-sm);
}

/* ========================================
   HELPER CLASSES
   ======================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Responsive visibility */
.mobile-only {
	display: block;
}

@media (min-width: 768px) {
	.mobile-only {
		display: none;
	}
}

.desktop-only {
	display: none;
}

@media (min-width: 768px) {
	.desktop-only {
		display: block;
	}
}

/* Spacing helpers */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ========================================
   FORM BASE STYLES
   ======================================== */
input,
textarea,
select {
	width: 100%;
	padding: var(--space-sm);
	font-size: var(--text-base);
	font-family: inherit;
	border: 2px solid var(--color-gray-light);
	border-radius: var(--radius-md);
	transition: border-color var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-red);
}

label {
	display: block;
	margin-bottom: var(--space-xs);
	font-weight: 500;
	color: var(--color-black);
}

/* ========================================
   CARD BASE STYLES
   ======================================== */
.card {
	background-color: var(--color-white);
	border: 1px solid var(--color-gray-light);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	transition: all var(--transition-base);
}

@media (min-width: 1024px) {
	.card {
		border-radius: var(--radius-lg); /* 12px on desktop */
		padding: var(--space-lg);
	}
}

.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

/* ========================================
   IMAGE STYLES
   ======================================== */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ========================================
   END OF FOUNDATION
   Your component-specific styles go below here
   ======================================== */