/* Island Estate: main styles. Colors and fonts come from the Customizer
   and are injected as the variables below (these are only fallbacks). */

:root {
	--color-navy: #0B2545;
	--color-sand: #F5EBE0;
	--color-coral: #FF6F59;
	--font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--navy-2: color-mix(in srgb, var(--color-navy) 88%, #fff);
	--ink-muted: color-mix(in srgb, var(--color-navy) 78%, #fff);
	--sand-line: color-mix(in srgb, var(--color-sand) 80%, var(--color-navy));
	--on-navy-muted: rgba(255, 255, 255, 0.82);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-navy);
	background: var(--color-sand);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 3px solid var(--color-coral);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 12px;
	top: 12px;
	padding: 12px 18px;
	background: #fff;
	color: var(--color-navy);
	z-index: 100000;
	border-radius: 8px;
}

.container {
	width: 100%;
	max-width: 1296px;
	margin: 0 auto;
	padding-left: 48px;
	padding-right: 48px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	opacity: 0.85;
}

.btn--sm {
	min-height: 44px;
	padding: 0 22px;
	font-size: 15px;
}

.btn--lg {
	min-height: 56px;
	padding: 0 32px;
	font-size: 17px;
}

.btn--coral {
	background: var(--color-coral);
	color: var(--color-navy);
}

.btn--navy {
	background: var(--color-navy);
	color: #fff;
}

.btn--outline {
	border-color: #fff;
	color: #fff;
}

/* Header */
.site-header {
	background: var(--color-navy);
	color: #fff;
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-decoration: none;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-height: 72px;
	width: auto;
}

@media (max-width: 860px) {
	.custom-logo {
		max-height: 56px;
	}
}

.primary-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.primary-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.primary-nav .menu li {
	position: relative;
}

.primary-nav .menu a {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a {
	opacity: 0.8;
}

.primary-nav .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--color-navy);
	border-radius: 12px;
	z-index: 50;
}

.primary-nav .menu li:hover > .sub-menu,
.primary-nav .menu li:focus-within > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 8px 18px;
}

.nav-toggle {
	display: none;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

/* Section helpers */
.on-navy {
	background: var(--color-navy);
	color: #fff;
}

.on-sand {
	background: var(--color-sand);
	color: var(--color-navy);
}

.eyebrow {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.on-navy .eyebrow {
	color: var(--color-coral);
}

.on-sand .eyebrow {
	color: var(--color-navy);
}

.section {
	padding: 88px 0;
}

.section-head {
	max-width: 640px;
	margin-bottom: 40px;
}

.section-head h2 {
	font-size: clamp(30px, 3.6vw, 40px);
	margin: 0;
}

.media-frame {
	border-radius: 24px;
	overflow: hidden;
	background: var(--navy-2);
}

.media-frame--wide {
	aspect-ratio: 16 / 11;
}

.media-frame--square {
	aspect-ratio: 1 / 1;
}

.media-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero */
.hero {
	padding: 72px 0 96px;
}

.hero-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
}

.hero-copy {
	flex: 1 1 460px;
	min-width: 0;
}

.hero h1 {
	margin: 0 0 24px;
	color: #fff;
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.hero-text {
	max-width: 520px;
	margin: 0 0 24px;
	font-size: 19px;
	color: var(--on-navy-muted);
}

.hero-media {
	flex: 1 1 420px;
	min-width: 0;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Services */
.service-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.service-card {
	flex: 1 1 240px;
	min-width: 0;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: 20px;
}

.service-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	background: var(--color-sand);
	border-radius: 14px;
	color: var(--color-navy);
}

.service-card h3 {
	font-size: 20px;
	margin-bottom: 8px;
}

.service-card p {
	margin: 0;
	font-size: 15px;
	color: var(--ink-muted);
}

/* About */
.about-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}

.about-media {
	flex: 1 1 420px;
	min-width: 0;
}

.about-copy {
	flex: 1 1 460px;
	min-width: 0;
}

.about-copy .section-head {
	margin-bottom: 28px;
}

.about-copy h2 {
	color: #fff;
}

.point {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
}

.point-num {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--color-sand);
	border-radius: 999px;
	color: var(--color-navy);
	font-weight: 700;
}

.point h3 {
	margin: 0 0 4px;
	font-size: 18px;
	color: #fff;
}

.point p {
	margin: 0;
	font-size: 15px;
	color: var(--on-navy-muted);
}

/* Testimonial */
.testimonial-inner {
	max-width: 908px;
	text-align: center;
}

.testimonial-quote {
	margin: 0 0 24px;
	font-family: var(--font-heading);
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.testimonial-name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-muted);
}

/* Call to action */
.section--cta {
	padding-top: 0;
}

.cta-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 64px 48px;
	border-radius: 28px;
}

.cta-copy {
	flex: 1 1 420px;
	min-width: 0;
}

.cta-copy h2 {
	margin: 0 0 12px;
	font-size: clamp(30px, 3.6vw, 40px);
	color: #fff;
}

.cta-copy p {
	margin: 0;
	font-size: 18px;
	color: var(--on-navy-muted);
}

/* Footer */
.site-footer {
	padding: 64px 0 32px;
	background: var(--color-navy);
	color: #C7D2E0;
}

.footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col {
	flex: 1 1 180px;
	min-width: 0;
}

.footer-col--brand {
	flex: 2 1 280px;
}

.footer-brand {
	display: block;
	margin-bottom: 12px;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.footer-col p {
	max-width: 360px;
	font-size: 15px;
}

.footer-heading,
.site-footer .widget-title {
	margin: 0 0 12px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.footer-menu,
.footer-contact,
.site-footer .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}

.footer-menu li,
.footer-contact li,
.site-footer .widget li {
	margin-bottom: 10px;
}

.site-footer a {
	color: #C7D2E0;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.brokerage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
	padding: 24px;
	background: color-mix(in srgb, var(--color-navy) 88%, #fff);
	border-radius: 16px;
	font-size: 14px;
}

.brokerage-logo {
	flex: 0 0 auto;
	width: 190px;
	max-width: 100%;
	height: auto;
	padding: 12px 16px;
	background: #fff;
	border-radius: 10px;
}

.brokerage-text {
	flex: 1 1 280px;
	min-width: 0;
}

.brokerage-text p {
	margin: 0 0 4px;
	max-width: none;
}

.brokerage-name {
	color: #fff;
	font-size: 15px;
}

.brokerage-license {
	margin-left: 6px;
	font-weight: 400;
}

/* On the Contact page the block sits on sand, so use dark text. */
.entry-content .brokerage {
	background: #fff;
	border: 1px solid var(--sand-line);
	color: var(--color-navy);
}

.entry-content .brokerage-name {
	color: var(--color-navy);
}

.entry-content .brokerage a {
	color: var(--color-navy);
}

.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid color-mix(in srgb, var(--color-navy) 75%, #fff);
	font-size: 14px;
}

/* Inner pages and blog */
.page-hero {
	padding: 56px 0;
}

.page-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 4.4vw, 46px);
}

.page-hero .post-meta {
	margin-bottom: 8px;
	color: var(--on-navy-muted);
}

.content-area {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 88px;
}

.content-area .site-main {
	flex: 1 1 600px;
	min-width: 0;
}

.widget-area {
	flex: 0 1 300px;
	min-width: 0;
}

.entry {
	max-width: 820px;
}

.entry-image img {
	border-radius: 20px;
	margin-bottom: 32px;
}

.entry-content {
	font-size: 17px;
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--color-coral);
	font-size: 1.1em;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content .alignwide {
	max-width: none;
}

.entry-cats {
	font-size: 14px;
	color: var(--ink-muted);
}

.post-meta {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-muted);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: 20px;
}

.post-card-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.post-card-body {
	padding: 24px;
}

.post-card-title {
	margin: 0 0 10px;
	font-size: 21px;
}

.post-card-title a {
	text-decoration: none;
}

.post-card-title a:hover {
	text-decoration: underline;
}

.post-card-excerpt {
	font-size: 15px;
	color: var(--ink-muted);
}

.post-card-excerpt p {
	margin: 0 0 12px;
}

.read-more {
	font-size: 15px;
	font-weight: 700;
}

.pagination,
.post-navigation {
	margin-top: 40px;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pagination .page-numbers {
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--color-navy);
	color: #fff;
}

.post-navigation a {
	font-weight: 600;
}

.widget {
	margin-bottom: 24px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: 20px;
}

.widget-title {
	margin: 0 0 12px;
	font-size: 18px;
}

.widget ul {
	margin: 0;
	padding-left: 18px;
}

.site-footer .widget {
	margin: 0 0 16px;
	padding: 0;
	background: transparent;
	border: 0;
}

input[type='search'],
input[type='text'],
input[type='email'],
textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--color-navy);
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: 12px;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.search-form label {
	flex: 1 1 200px;
}

.search-submit {
	min-height: 48px;
	padding: 0 22px;
	background: var(--color-navy);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
	cursor: pointer;
}

/* Contact form and details */
.contact-details {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

.contact-details li {
	margin-bottom: 8px;
}

.contact-form-wrap {
	max-width: 620px;
}

.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.contact-form .req {
	color: var(--color-navy);
}

.island-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	margin: 0 0 20px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-left: 5px solid var(--color-navy);
	border-radius: 12px;
	font-size: 15px;
}

.form-notice--ok {
	border-left-color: #2E7D4F;
}

.form-notice--error {
	border-left-color: #B3261E;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 28px;
	background: var(--color-coral);
	color: var(--color-navy);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button__link:hover {
	opacity: 0.85;
}

/* Comments */
.comments-area {
	max-width: 820px;
	margin-top: 56px;
}

.comment-list {
	padding-left: 20px;
}

/* WordPress core alignment classes */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
figcaption {
	font-size: 14px;
	color: var(--ink-muted);
}

/* Small screens */
@media (max-width: 860px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.primary-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 8px;
	}

	.primary-nav.is-open {
		display: flex;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: flex-start;
	}

	.primary-nav .sub-menu {
		display: block;
		position: static;
		padding: 6px 0 0 16px;
		min-width: 0;
	}

	.hero {
		padding: 48px 0 64px;
	}

	.section {
		padding: 64px 0;
	}

	.cta-card {
		padding: 40px 24px;
	}

	.content-area {
		padding-top: 40px;
		padding-bottom: 56px;
	}
}
