/*
Theme Name: Atieh Ertebat
Theme URI: http://localhost/atiehertebat
Author: Atieh Ertebat Kish
Description: Custom classic theme for Atieh Ertebat Kish (RTL, Persian).
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: atiehertebat
*/

/* Base layer only. Section styles live in assets/css/<section>.css */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

/* In-page anchors: smooth scroll (instant for reduced motion); assets/js/smooth-anchors.js sets the header offset. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

[id] {
	scroll-margin-top: var(--at-anchor-offset, 0px);
}

body {
	margin: 0;
	background: #fcfcfc;
	color: #252525;
	font-family: "Kalameh", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 8px;
	right: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ---------- Design tokens ---------- */
:root {
	--at-teal: #57b3b7;
	--at-teal-hover: #469ea2;
	--at-ink: #020202;
	--at-body: #252525;
	--at-muted: #666;
	--at-line: #ececf1;
	--at-page: #fcfcfc;
	--at-soft: #f6f6fa;
	--at-gutter: clamp(16px, 4vw, 240px);
	--at-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.at-container {
	width: min(1440px, 100% - 2 * var(--at-gutter));
	margin-inline: auto;
}

/* ---------- Shared pill button (header, sections). Matches the hero .hh-btn look. ---------- */
.at-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin-inline-start: 8px; /* room for the icon that overhangs the start edge */
	padding-block: 6px;
	padding-inline: 34px 24px; /* start side (right in RTL) clears the overhanging icon */
	border: 1.5px solid var(--at-teal);
	border-radius: 999px;
	background: var(--at-teal);
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--at-ease);
}

.at-btn__icon {
	position: absolute;
	inset-inline-start: -8px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(87, 179, 183, 0.25);
	overflow: hidden;
}

.at-btn__icon img {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.3s var(--at-ease);
}

.at-btn--plain {
	margin-inline-start: 0;
	padding-inline: 32px;
	justify-content: center;
}

.at-btn:hover,
.at-btn:focus-visible {
	background: var(--at-teal-hover);
	border-color: var(--at-teal-hover);
	box-shadow: 0 10px 24px -8px rgba(70, 158, 162, 0.55);
}

.at-btn:hover .at-btn__icon img,
.at-btn:focus-visible .at-btn__icon img {
	transform: translateX(-4px);
}

.at-btn:active {
	transform: translateY(1px);
}

.at-btn:focus-visible {
	outline: 2px solid var(--at-ink);
	outline-offset: 3px;
}

/* ---------- Outline button (secondary CTA; software, data center, render farm, home why section) ---------- */
.at-btn--outline {
	background: transparent;
	color: var(--at-teal);
}

.at-btn--outline .at-btn__icon {
	background: var(--at-teal);
	box-shadow: none;
}

.at-btn--outline:hover,
.at-btn--outline:focus-visible {
	background: rgba(87, 179, 183, 0.1);
	border-color: var(--at-teal);
	color: var(--at-teal-hover);
}

/* ---------- Shared slider arrows (home hero, render farm projects): 40px circle, teal outline, RTL chevrons.
   Hover / focus / active only change colours (and a press scale via transform), never the box size. ---------- */
.at-arrow {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1.5px solid var(--at-teal, #57b3b7);
	border-radius: 50%;
	background: #fff;
	color: var(--at-teal, #57b3b7);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.at-arrow[hidden] {
	display: none;
}

.at-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}

.at-arrow:hover {
	background: var(--at-teal, #57b3b7);
	color: #fff;
}

.at-arrow:active {
	transform: scale(0.94);
}

.at-arrow:focus-visible {
	outline: 2px solid var(--at-ink, #020202);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.at-arrow {
		transition: none;
	}

	.at-arrow:active {
		transform: none;
	}
}

.at-btn[disabled] {
	cursor: progress;
	opacity: 0.7;
}

/* Text highlighted in teal inside headings ("ما", brand name). */
.at-hl {
	color: var(--at-teal);
}

/* ---------- Scroll reveal (enabled by JS only, never when reduced motion is requested) ---------- */
.at-reveal-on [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--at-ease), transform 0.7s var(--at-ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}

.at-reveal-on [data-reveal].is-in {
	opacity: 1;
	transform: none;
}
