/* Figtree Farm: light-touch design enhancements.
   Loaded after the template and skin CSS so it can override them without editing them.
   Note: the template sets `* { border-radius: 0 !important }` and removes focus outlines,
   so rounded corners and focus rings below need !important. */

:root {
	--ftf-ink: #3a3530;
	--ftf-ink-soft: #5a5148;
	--ftf-cream: #f7f3ea;
	--ftf-sage: #e4e3ca;
	--ftf-tan: #e4dcca;
	--ftf-fig: #6b3f52;
	--ftf-fig-dark: #532f40;
	--ftf-shadow: 0 2px 12px rgba(58, 53, 48, .12);
}

/* ---------- Foundations ---------- */
body {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ftf-ink);
}
a, a:hover, a:focus { color: var(--ftf-fig); }
.page p, .rotate-box-1 p { font-size: 1rem; line-height: 1.65; color: var(--ftf-ink); }
p.subtitle { color: var(--ftf-ink-soft); }

:focus-visible {
	outline: 3px solid var(--ftf-fig) !important;
	outline-offset: 2px !important;
}
.btn-blank:focus-visible, #text-carousel-intro-section a:focus-visible {
	outline-color: #fff !important;
}

/* ---------- Navigation: readable active/hover state ---------- */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default.navbar-shrink .navbar-nav > li > a:hover,
.navbar-default.navbar-shrink .navbar-nav > li > a:focus,
.navbar-default.navbar-shrink .navbar-nav > li.active > a {
	color: var(--ftf-fig) !important;
}
.navbar-default .navbar-nav > li.active > a,
.navbar-default.navbar-shrink .navbar-nav > li.active > a {
	-webkit-box-shadow: inset 0 -3px var(--ftf-fig) !important;
	box-shadow: inset 0 -3px var(--ftf-fig) !important;
}
.navbar-default .navbar-toggle { border-color: var(--ftf-ink); }
.navbar-default .navbar-toggle .icon-bar { background-color: var(--ftf-ink); }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: rgba(58, 53, 48, .08); }

/* ---------- Hero: legible text over the photo + clear actions ---------- */
#text-carousel-intro-section { position: relative; }
#text-carousel-intro-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 15, 10, .35) 0%, rgba(20, 15, 10, .55) 100%);
	z-index: 0;
	pointer-events: none;
}
#text-carousel-intro-section .container { position: relative; z-index: 1; }
#text-carousel-intro-section .caption h1 { text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
#text-carousel-intro-section .caption p { text-shadow: 0 1px 4px rgba(0, 0, 0, .5); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions .btn-blank { margin: 0; min-height: 44px; line-height: 28px; padding: 8px 20px; }
.hero-actions .hero-primary { background: var(--ftf-cream); color: var(--ftf-ink); border-color: var(--ftf-cream); }
.hero-actions .hero-primary:hover, .hero-actions .hero-primary:focus { color: #fff; }

/* ---------- About cards ---------- */
.rotate-box-1-wrapper .row { display: flex; flex-wrap: wrap; }
.rotate-box-1-wrapper .row::before, .rotate-box-1-wrapper .row::after { display: none; }
.rotate-box-1-wrapper .row > [class*="col-"] { display: flex; }
.rotate-box-1-wrapper a.rotate-box-1 {
	display: block;
	width: 100%;
	margin: 0 0 24px;
	padding: 24px 18px;
	background: rgba(255, 255, 255, .6);
	border-radius: 12px !important;
	box-shadow: var(--ftf-shadow);
	color: var(--ftf-ink);
}
.rotate-box-1-wrapper a.rotate-box-1:hover { background: rgba(255, 255, 255, .85); color: var(--ftf-ink); transform: translateY(-2px); }
.rotate-box-1-wrapper .rotate-box-icon { float: none; display: block; margin: 6px auto 24px; }
.rotate-box-1-wrapper .rotate-box-info { padding-left: 0; text-align: center; }
.rotate-box-1-wrapper .rotate-box-info h4 { font-size: 24px; margin-top: 0; }
.rotate-box-1-wrapper .rotate-box-info p { padding: 0; overflow-wrap: anywhere; }

/* ---------- Products ---------- */
#portfolio { margin-left: -8px; margin-right: -8px; }
#portfolio > div { padding-left: 8px; padding-right: 8px; }
.pc {
	position: relative;
	margin: 0 0 16px;
	overflow: hidden;
	background: #fff;
	border-radius: 12px !important;
	box-shadow: var(--ftf-shadow);
}
.pc-open {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	overflow: hidden;
	cursor: zoom-in;
}
.pc-open img {
	display: block;
	width: 100%;
	height: auto;               /* never let the width/height attributes stretch the photo */
	aspect-ratio: 4 / 5;        /* uniform crop so rows line up */
	object-fit: cover;
	transition: transform .5s ease;
}
.pc-open:hover img { transform: scale(1.03); }
.pc-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 12px 10px;
	background: linear-gradient(rgba(30, 24, 20, 0), rgba(30, 24, 20, .62) 35%, rgba(30, 24, 20, .88));
	color: #fff;
	text-align: left;
	pointer-events: none;
}
.pc-name, .pc-cat { text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.pc-name { display: block; font-weight: 500; font-size: 15px; line-height: 1.25; }
.pc-cat { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }

.portfolio_menu { margin-bottom: 28px; overflow: visible; }
.portfolio_menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.portfolio_menu ul li a {
	margin: 0;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid rgba(58, 53, 48, .3);
	border-radius: 999px !important;
	color: var(--ftf-ink);
	font-size: 13px;
	letter-spacing: .06em;
	line-height: 22px;
}
.portfolio_menu ul li.active_prot_menu a,
.portfolio_menu ul li a:hover,
.portfolio_menu ul li a:focus {
	background: var(--ftf-fig);
	border-color: var(--ftf-fig);
	color: #fff;
}

/* ---------- Buttons (shared) ---------- */
.btn-ftf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--ftf-fig);
	border-radius: 999px !important;
	background: transparent;
	color: var(--ftf-fig);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.btn-ftf:hover, .btn-ftf:focus { background: var(--ftf-fig); color: #fff; text-decoration: none; }
.btn-ftf-primary { background: var(--ftf-fig); color: #fff; }
.btn-ftf-primary:hover, .btn-ftf-primary:focus { background: var(--ftf-fig-dark); border-color: var(--ftf-fig-dark); color: #fff; }

/* ---------- Social band ---------- */
#social-section { background: #efe8d8; padding: 56px 0; text-align: center; }
#social-section h2 { margin-top: 0; }
#social-section p { margin: 8px 0 22px; color: var(--ftf-ink); }
.social-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Contact ---------- */
#contact-section { background: var(--ftf-cream); color: var(--ftf-ink); }
#contact-section .page-header h2, #contact-section .page-header .subtitle { color: var(--ftf-ink); }
.contact-grid { display: flex; flex-wrap: wrap; }
.contact-grid::before, .contact-grid::after { display: none; }
.contact-grid > [class*="col-"] { display: flex; margin-bottom: 24px; }
.contact-card { text-align: left; }
@media (max-width: 991px) { .contact-grid > [class*="col-"] { width: 100%; } }
.contact-card {
	width: 100%;
	padding: 28px;
	background: #fff;
	border-radius: 12px !important;
	box-shadow: var(--ftf-shadow);
}
.contact-card h4 { margin-top: 0; font-size: 26px; }
.contact-card address { margin: 0 0 14px; font-style: normal; line-height: 1.7; }
.contact-card .contact-line { margin: 0 0 8px; }
.contact-card .contact-line .fa { width: 22px; color: var(--ftf-fig); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.contact-msg { margin: 0; font-size: .95rem; color: var(--ftf-ink-soft); }
.contact-map { width: 100%; min-height: 340px; border-radius: 12px !important; overflow: hidden; box-shadow: var(--ftf-shadow); background: #e8e2d2; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.footer-loc { margin: 0 0 6px; opacity: .95; }

/* ---------- Lightbox ---------- */
body.lb-open { overflow: hidden; }
.lb {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 15, 10, .92);
	color: #fff;
}
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: rgba(20, 15, 10, .92); }
.lb figure { margin: 0; max-width: min(92vw, 640px); text-align: center; }
.lb img { display: block; max-width: 100%; max-height: 78dvh; margin: 0 auto; object-fit: contain; border-radius: 8px !important; }
.lb figcaption { margin-top: 12px; font-size: 1rem; }
.lb button {
	position: absolute;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .3); }
.lb button:focus-visible { outline-color: #fff !important; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	/* Mobile nav sheet: replaces the template's lavender dropdown */
	.navbar-default .navbar-collapse,
	.navbar-default .navbar-collapse.in {
		margin: 0 -50px;            /* template pads the nav container 50px; bleed to the screen edges */
		padding: 4px 24px 12px;
		background: var(--ftf-cream);
		border: 0 !important;
		border-top: 1px solid rgba(58, 53, 48, .12) !important;
		box-shadow: 0 14px 28px rgba(58, 53, 48, .18);
	}
	.navbar-default .navbar-nav { margin: 0; }
	.navbar-default .navbar-nav > li > a {
		padding: 15px 0 15px 14px !important;
		border-left: 3px solid transparent;
		border-bottom: 1px solid rgba(58, 53, 48, .1);
		color: var(--ftf-ink);
		font-size: 16px;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	.navbar-default .navbar-nav > li:last-child > a { border-bottom: 0; }
	.navbar-default .navbar-nav > li.active > a,
	.navbar-default.navbar-shrink .navbar-nav > li.active > a {
		border-left-color: var(--ftf-fig);
		background: rgba(107, 63, 82, .07);
		color: var(--ftf-fig) !important;
		font-weight: 700;
		-webkit-box-shadow: none !important;
		box-shadow: none !important;
	}
	body { font-size: 16px; }
	#text-carousel-intro-section .caption h1 { font-size: 40px; }
	.contact-card { padding: 22px 18px; }
	.contact-actions .btn-ftf { flex: 1 1 100%; }
	.contact-map, .contact-map iframe { min-height: 300px; }
	.lb-prev { left: 6px; }
	.lb-next { right: 6px; }
	.portfolio_menu ul {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		padding: 0 16px 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.portfolio_menu ul::-webkit-scrollbar { display: none; }
	.portfolio_menu ul li { flex: 0 0 auto; }
	.pc-name { font-size: 14px; }
}

/* ---------- Respect reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wow { animation: none !important; visibility: visible !important; opacity: 1 !important; }
	*, *::before, *::after { transition-duration: .01ms !important; }
	.pc-open:hover img { transform: none; }
}
