/*
Theme Name: Alen Marin
Theme URI: https://www.alenshipsupply.com/
Author: Hubsolute
Description: Alen Marin için yat ve tekne malzemeleri tanıtım teması. Ürün vitrini (fiyatsız), ürün grupları ve iletişim formu içerir.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: alen-marin
*/

:root {
	--am-navy: #0b1d33;
	--am-navy-2: #12294a;
	--am-accent: #bfa27a;
	--am-accent-dark: #a98b60;
	--am-sand: #f4f2ee;
	--am-ink: #0d0d0d;
	--am-text: #4a4a4a;
	--am-line: #e3ded6;
	--am-white: #fff;
	--am-serif: "Cormorant Upright", "Cormorant Garamond", Georgia, serif;
	--am-sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--am-mono: "Inconsolata", ui-monospace, Menlo, monospace;
	--am-top: 38px;
	--am-header: 116px;
	--am-header-s: 84px;
	--am-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--am-white);
	color: var(--am-text);
	font: 300 16px/1.75 var(--am-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.am-menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: color .3s; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--am-ink);
	font-family: var(--am-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: .05em;
	text-transform: uppercase;
}

h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(21px, 2vw, 25px); }

p { margin: 0 0 1.2em; }

:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Layout */
.am-container { width: min(1180px, 100% - 64px); margin-inline: auto; }
.am-container--narrow { width: min(820px, 100% - 64px); }
.am-section { padding: clamp(80px, 11vw, 140px) 0; }
.am-section--sand { background: var(--am-sand); }
.am-mt { margin-top: 56px; }

/* Typography helpers */
.am-tagline {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--am-accent);
	font: 500 13px/1.4 var(--am-mono);
	letter-spacing: .28em;
	text-transform: uppercase;
}
.am-tagline--light { color: #e4d5bd; }

.am-meta { display: block; margin-bottom: 6px; color: var(--am-accent); font-size: 14px; }

.am-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--am-ink);
	font: 500 13px/1 var(--am-mono);
	letter-spacing: .25em;
	text-transform: uppercase;
}
.am-link::after { content: "→"; letter-spacing: 0; transition: transform .3s var(--am-ease); }
.am-link:hover::after,
a:hover > .am-link::after { transform: translateX(5px); }
.am-link--light { color: var(--am-white); }

.am-heading { position: relative; max-width: 720px; margin: 0 auto 64px; text-align: center; }
.am-heading .am-icon { width: 58px; height: 58px; margin: 0 auto 26px; color: var(--am-accent); opacity: .75; }
.am-heading p { margin-top: 18px; }
.am-ghost {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-90%, -12%);
	color: var(--am-ink);
	opacity: .045;
	font: 500 clamp(80px, 11vw, 140px)/1 var(--am-serif);
	letter-spacing: .02em;
	pointer-events: none;
	user-select: none;
}
.am-heading .am-icon + .am-ghost { top: 84px; }

/* Buttons */
.am-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.am-btns--center { justify-content: center; }
.am-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 38px;
	border: 1px solid transparent;
	border-radius: 0;
	background: none;
	font: 500 14px/1 var(--am-mono);
	letter-spacing: .25em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .35s, color .35s, border-color .35s;
}
.am-btn--sm { min-height: 44px; padding: 0 24px; font-size: 13px; }
.am-btn--accent { background: var(--am-accent); color: var(--am-white); }
.am-btn--accent:hover { background: var(--am-accent-dark); }
.am-btn--dark { background: var(--am-navy); color: var(--am-white); }
.am-btn--dark:hover { background: var(--am-accent); }
.am-btn--outline { border-color: var(--am-ink); color: var(--am-ink); }
.am-btn--outline:hover { background: var(--am-ink); color: var(--am-white); }
.am-btn--outline-light { border-color: rgba(255, 255, 255, .85); color: var(--am-white); }
.am-btn--outline-light:hover { background: var(--am-white); color: var(--am-ink); }

/* Top bar + header */
.am-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
	height: var(--am-top);
	border-bottom: 1px solid rgba(255, 255, 255, .16);
	color: rgba(255, 255, 255, .85);
	font: 400 12px/var(--am-top) var(--am-sans);
	letter-spacing: .04em;
}
.am-topbar__inner { display: flex; justify-content: space-between; gap: 20px; }
.am-topbar__contact { display: flex; gap: 26px; }
.am-topbar a:hover { color: var(--am-white); }

.am-header {
	position: fixed;
	top: var(--am-top);
	left: 0;
	right: 0;
	z-index: 50;
	height: var(--am-header);
	color: var(--am-white);
	transition: top .35s var(--am-ease), background .35s, height .35s var(--am-ease), box-shadow .35s;
}
.admin-bar .am-topbar { top: 32px; }
.admin-bar .am-header { top: calc(var(--am-top) + 32px); }
.am-header.is-scrolled,
.am-menu-open .am-header {
	top: 0;
	height: var(--am-header-s);
	background: var(--am-white);
	color: var(--am-ink);
	box-shadow: 0 1px 0 var(--am-line);
}
.admin-bar .am-header.is-scrolled,
.admin-bar.am-menu-open .am-header { top: 32px; }

.am-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 100%;
}

.am-nav .menu { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.am-nav a,
.am-mobile a {
	font: 500 13px/1 var(--am-mono);
	letter-spacing: .25em;
	text-transform: uppercase;
}
.am-nav a { position: relative; padding: 8px 0; }
.am-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s var(--am-ease);
}
.am-nav a:hover::after,
.am-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.am-nav .sub-menu { display: none; }

.am-logo { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.am-logo { position: relative; }
.am-logo__img { height: 100px; width: auto; max-height: none; transition: height .35s var(--am-ease), opacity .35s; }
.am-logo__img--color { position: absolute; left: 50%; top: 0; transform: translateX(-50%); opacity: 0; }
.am-header.is-scrolled .am-logo__img,
.am-menu-open .am-logo__img { height: 72px; }
.am-header.is-scrolled .am-logo__img--light,
.am-menu-open .am-logo__img--light { opacity: 0; }
.am-header.is-scrolled .am-logo__img--color,
.am-menu-open .am-logo__img--color { opacity: 1; }

.am-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 26px; }
.am-header__phone { font: 500 13px/1 var(--am-mono); letter-spacing: .12em; }

.am-burger { display: none; }

.am-mobile {
	position: fixed;
	inset: var(--am-header-s) 0 0;
	z-index: 45;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px 24px 32px;
	background: var(--am-white);
	overflow-y: auto;
}
.am-mobile[hidden] { display: none; }
.admin-bar .am-mobile { top: calc(var(--am-header-s) + 32px); }
.am-mobile .menu { margin: 0; padding: 0; list-style: none; }
.am-mobile .menu a { display: block; padding: 18px 0; border-bottom: 1px solid var(--am-line); color: var(--am-ink); font-size: 15px; }
.am-mobile__contact { display: grid; gap: 10px; margin-top: 32px; }
.am-mobile__contact a { color: var(--am-ink); font: 400 15px/1.4 var(--am-sans); letter-spacing: 0; text-transform: none; }

/* Hero */
.am-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--am-top) + var(--am-header)) 0 80px;
	background: var(--am-navy) center/cover no-repeat;
	color: var(--am-white);
}
.am-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(6, 16, 30, .78) 0%, rgba(6, 16, 30, .42) 55%, rgba(6, 16, 30, .15) 100%),
		linear-gradient(180deg, rgba(6, 16, 30, .45) 0%, rgba(6, 16, 30, 0) 30%);
}
.am-hero__inner { position: relative; }
.am-hero__content { max-width: 620px; }
.am-hero h1 { color: var(--am-white); }
.am-hero p { max-width: 470px; color: rgba(255, 255, 255, .88); font-size: 17px; }
.am-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 34px;
	width: 1px;
	height: 64px;
	background: rgba(255, 255, 255, .3);
	overflow: hidden;
}
.am-hero__scroll span {
	position: absolute;
	inset: 0;
	background: var(--am-white);
	animation: am-scroll 2.2s var(--am-ease) infinite;
}
@keyframes am-scroll {
	0% { transform: translateY(-100%); }
	60%, 100% { transform: translateY(100%); }
}

/* Inner page banner */
.am-banner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	padding: calc(var(--am-top) + var(--am-header) + 40px) 0 72px;
	background: var(--am-navy) center/cover no-repeat;
	color: var(--am-white);
	text-align: center;
}
.am-banner::before { content: ""; position: absolute; inset: 0; background: rgba(6, 16, 30, .55); }
.am-banner__inner { position: relative; width: min(1180px, 100% - 64px); margin-inline: auto; }
.am-banner h1 { margin: 0; color: var(--am-white); font-size: clamp(40px, 6vw, 72px); }

/* Framed images (Seafarer-style thin border with inset) */
.am-frame {
	display: block;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--am-line);
	background: var(--am-white);
	overflow: hidden;
}
.am-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--am-ease); }
a:hover .am-frame img,
.am-frame:hover img { transform: scale(1.04); }

.am-trio { display: grid; grid-template-columns: 1fr 1.9fr 1fr; gap: 26px; align-items: center; }
.am-trio .am-frame { aspect-ratio: 3 / 4; }
.am-trio .am-frame--wide { aspect-ratio: 4 / 3; }

/* Features */
.am-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; max-width: 980px; margin-inline: auto; }
.am-feature { display: flex; gap: 30px; align-items: flex-start; }
.am-feature__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 104px;
	height: 104px;
	border: 1px solid var(--am-line);
	color: var(--am-accent);
}
.am-feature__icon .am-icon { width: 54px; height: 54px; }
.am-feature h3 { margin-top: 10px; }
.am-feature p { margin: 0; font-size: 15px; }

/* Parallax band */
.am-parallax,
.am-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 620px;
	padding: 100px 24px;
	background: var(--am-navy) center/cover no-repeat fixed;
	color: var(--am-white);
	text-align: center;
}
.am-parallax::before,
.am-cta::before { content: ""; position: absolute; inset: 0; background: rgba(6, 16, 30, .45); }
.am-parallax__inner,
.am-cta__inner { position: relative; }
.am-parallax h2 { color: var(--am-white); font-size: clamp(42px, 7vw, 92px); }
.am-cta h2 { color: var(--am-white); }
.am-cta p { max-width: 560px; margin-inline: auto; color: rgba(255, 255, 255, .88); }

/* Mosaic of product groups */
.am-mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(240px, 1fr));
	gap: 10px;
	min-height: 640px;
}
.am-tile { position: relative; overflow: hidden; color: var(--am-white); }
.am-tile--big { grid-row: span 2; }
.am-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--am-ease); }
.am-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 30, 0) 40%, rgba(6, 16, 30, .75) 100%); }
.am-tile:hover img { transform: scale(1.06); }
.am-tile__label { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: grid; gap: 12px; }
.am-tile__title { font: 500 clamp(19px, 1.7vw, 24px)/1.15 var(--am-serif); letter-spacing: .05em; text-transform: uppercase; }
.am-tile--big .am-tile__title { font-size: clamp(24px, 2.6vw, 34px); }

/* Navy band */
.am-navy {
	position: relative;
	padding: 96px 0;
	background-color: var(--am-navy);
	background-image:
		repeating-radial-gradient(circle at 18% 120%, rgba(255, 255, 255, .035) 0 1px, transparent 1px 38px),
		repeating-radial-gradient(circle at 92% -20%, rgba(255, 255, 255, .03) 0 1px, transparent 1px 46px);
	color: rgba(255, 255, 255, .78);
}
.am-navy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.am-navy h3 { color: var(--am-white); }
.am-navy p { max-width: 300px; font-size: 15px; }

/* Cards + grids */
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 30px; }
.am-card { display: flex; flex-direction: column; }
.am-card .am-frame { aspect-ratio: 4 / 5; margin-bottom: 24px; }
.am-card h3 { margin-bottom: 10px; }
.am-card p { flex: 1; margin-bottom: 18px; font-size: 15px; }

.am-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: -24px 0 56px; }
.am-filter a {
	padding: 8px 0;
	border-bottom: 1px solid transparent;
	color: var(--am-text);
	font: 500 12px/1 var(--am-mono);
	letter-spacing: .2em;
	text-transform: uppercase;
}
.am-filter a:hover,
.am-filter a.is-active { border-color: var(--am-accent); color: var(--am-ink); }

.am-empty { max-width: 560px; margin: 0 auto; text-align: center; }

.nav-links { display: flex; justify-content: center; gap: 16px; margin-top: 64px; font-family: var(--am-mono); }
.nav-links .current { color: var(--am-accent); }

/* Split layout (about, product detail) */
.am-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.am-split .am-frame { aspect-ratio: 4 / 5; }
.am-split__text .am-btn { margin-top: 18px; }

.am-prose { font-size: 16px; }
.am-prose h2,
.am-prose h3 { margin-top: 1.4em; }
.am-prose a { color: var(--am-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.am-prose ul { padding-left: 1.2em; }

/* Contact */
.am-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.am-contact__list { display: grid; gap: 4px; margin: 36px 0 0; }
.am-contact__list dt {
	margin-top: 18px;
	color: var(--am-accent);
	font: 500 12px/1.4 var(--am-mono);
	letter-spacing: .25em;
	text-transform: uppercase;
}
.am-contact__list dd { margin: 0; color: var(--am-ink); font-size: 17px; }
.am-contact__list a:hover { color: var(--am-accent); }

.am-form { display: grid; gap: 22px; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--am-line); background: var(--am-sand); }
.am-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.am-form label {
	display: grid;
	gap: 8px;
	color: var(--am-ink);
	font: 500 12px/1.4 var(--am-mono);
	letter-spacing: .2em;
	text-transform: uppercase;
}
.am-form input,
.am-form select,
.am-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--am-line);
	border-radius: 0;
	background: var(--am-white);
	color: var(--am-ink);
	font: 300 16px/1.5 var(--am-sans);
	letter-spacing: 0;
	text-transform: none;
	transition: border-color .3s;
}
.am-form input:focus,
.am-form select:focus,
.am-form textarea:focus { outline: none; border-color: var(--am-accent); }
.am-form .am-btn { justify-self: start; }
.am-hp { position: absolute; left: -9999px; }
.am-notice { margin: 0; padding: 14px 18px; font-size: 15px; }
.am-notice--success { background: #e9f3ea; color: #24572b; }
.am-notice--error { background: #f7e9e7; color: #8a2b20; }

.am-post { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--am-line); }

/* Footer */
.am-footer { padding: 96px 0 0; background: var(--am-navy); color: rgba(255, 255, 255, .7); font-size: 15px; }
.am-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 72px; }
.am-footer h4 {
	margin-bottom: 22px;
	color: var(--am-white);
	font: 500 12px/1 var(--am-mono);
	letter-spacing: .28em;
}
.am-footer .menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.am-footer a:hover { color: var(--am-accent); }
.am-footer__brand .am-logo { align-items: flex-start; margin-bottom: 24px; }
.am-footer__logo { width: 170px; height: auto; }
.am-footer__brand p { max-width: 300px; }
.am-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 26px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
}
.am-totop { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3); }

.am-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: var(--am-white);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.am-wa svg { width: 30px; height: 30px; }

/* Reveal on scroll */
.am-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--am-ease), transform 1s var(--am-ease); }
.am-reveal.is-visible { opacity: 1; transform: none; }
.no-js .am-reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
	.am-nav,
	.am-header__phone { display: none; }
	.am-header__inner { grid-template-columns: auto 1fr auto; gap: 16px; }
	.am-logo { grid-column: 1; align-items: flex-start; }
	.am-logo__img--color { left: 0; transform: none; }
	.am-header__actions { grid-column: 2; }
	.am-burger {
		grid-column: 3;
		display: grid;
		gap: 6px;
		width: 44px;
		height: 44px;
		padding: 13px 10px;
		border: 0;
		background: none;
		color: inherit;
		cursor: pointer;
		align-content: center;
	}
	.am-burger span { display: block; height: 1px; background: currentColor; transition: transform .3s, opacity .3s; }
	.am-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.am-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.am-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.am-footer__grid { grid-template-columns: 1fr 1fr; }
	.am-grid { grid-template-columns: repeat(2, 1fr); }
	.am-navy__grid { grid-template-columns: 1fr; gap: 40px; }
	.am-parallax,
	.am-cta { background-attachment: scroll; }
}

@media (max-width: 782px) {
	.admin-bar .am-topbar { top: 46px; }
	.admin-bar .am-header { top: calc(var(--am-top) + 46px); }
	.admin-bar .am-header.is-scrolled,
	.admin-bar.am-menu-open .am-header { top: 46px; }
	.admin-bar .am-mobile { top: calc(var(--am-header-s) + 46px); }
}

@media (max-width: 760px) {
	:root { --am-header: 92px; --am-header-s: 72px; }
	.am-container,
	.am-container--narrow,
	.am-banner__inner { width: calc(100% - 32px); }
	.am-topbar__inner > span:first-child { display: none; }
	.am-topbar__inner { justify-content: center; }
	.am-topbar__contact { gap: 16px; font-size: 11px; }
	.am-logo__img { height: 78px; }
	.am-header.is-scrolled .am-logo__img,
	.am-menu-open .am-logo__img { height: 60px; }
	.am-header__actions .am-btn { display: none; }

	.am-hero { align-items: flex-end; padding-bottom: 120px; }
	.am-hero::before { background: linear-gradient(180deg, rgba(6, 16, 30, .35) 0%, rgba(6, 16, 30, .8) 100%); }
	.am-btn { width: 100%; padding: 0 20px; }
	.am-btns { flex-direction: column; }

	.am-trio { grid-template-columns: 1fr 1fr; gap: 12px; }
	.am-trio .am-frame--wide { grid-column: 1 / -1; grid-row: 1; }
	.am-features { grid-template-columns: 1fr; gap: 40px; }
	.am-feature { gap: 20px; }
	.am-feature__icon { width: 80px; height: 80px; }
	.am-feature__icon .am-icon { width: 42px; height: 42px; }

	.am-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; min-height: 0; }
	.am-tile--big { grid-column: 1 / -1; grid-row: auto; }
	.am-tile__label { left: 16px; right: 16px; bottom: 16px; }

	.am-grid,
	.am-split,
	.am-contact,
	.am-form__grid { grid-template-columns: 1fr; }
	.am-filter { justify-content: flex-start; gap: 4px 18px; }

	.am-parallax,
	.am-cta { min-height: 480px; }
	.am-banner { min-height: 360px; padding-bottom: 48px; }

	.am-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.am-footer__bottom { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.am-reveal { opacity: 1; transform: none; }
}
