/*
Theme Name: Avisan Engineering
Theme URI: https://avisanengineering.com
Author: Avisan Engineering Enterprises
Author URI: https://avisanengineering.com
Description: Custom WordPress theme for Avisan Engineering Enterprises — Marine and Industrial Engineering Solutions. Converted from Flask.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avisan
Tags: marine, engineering, corporate, custom-logo, one-column
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ── Variable Tokens ─────────────────────────────── */
:root {
  --navy-900: #06274a;
  --navy-800: #0b3f72;
  --teal-500: #2f9fa1;
  --steel-700: #1c2a3d;
  --steel-500: #4c5d74;
  --paper: #f2f5f9;
  --white: #ffffff;
  --alert: #d9363e;
  --shadow-soft: 0 12px 28px rgba(10, 30, 56, 0.08);
  --shadow-card: 0 18px 42px rgba(6, 26, 51, 0.18);
}

/* ── Reset / Global ──────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--steel-700);
  background: radial-gradient(circle at top right, #f8fbff, var(--paper) 65%);
  font-family: "Manrope", sans-serif;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.06;
  color: #091629;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.95rem); }

p { margin: 0 0 0.9rem; line-height: 1.6; }

ul { margin: 0.55rem 0 0; padding-left: 1.1rem; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dce6f3;
}

/* Offset body to account for fixed header */
body {
  padding-top: 76px;
}

/* When WP admin bar is shown, push header below it */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-weight: 700;
  color: #0f2644;
}

.menu a {
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.menu a.active,
.menu a:hover {
  color: #0b4f86;
  border-color: #1c8f9f;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, #c4202a, var(--alert));
  box-shadow: 0 10px 18px rgba(217, 54, 62, 0.25);
}

.btn-light {
  color: var(--navy-900);
  background: var(--white);
}

.btn-whatsapp {
  margin-top: 0.6rem;
  color: var(--white);
  background: linear-gradient(135deg, #159947, #22bf5f);
  box-shadow: 0 10px 18px rgba(22, 153, 70, 0.25);
}

/* ── Hero Slider ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 74vh;
  padding: 4rem 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 22, 42, 0.86), rgba(5, 22, 42, 0.36) 58%, rgba(5, 22, 42, 0.55));
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 2rem));
  margin-inline: auto;
  color: var(--white);
}

.hero-content-wrap h1 { color: var(--white); margin-bottom: 0.9rem; }

.hero-content-wrap p { font-size: 1.18rem; max-width: 640px; }

.eyebrow {
  color: #ef4e4e;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.hero .eyebrow { color: #73d4d6; }

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy-800);
  cursor: pointer;
}

.hero-control.prev { left: 1rem; }
.hero-control.next { right: 1rem; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hero-dots button.active { background: #ef4e4e; }

/* ── Stats Band ──────────────────────────────────── */
.stats-band {
  background: linear-gradient(90deg, #082f59, #0b4a84);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.4rem 1rem;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-family: "Barlow Condensed", sans-serif;
}

/* ── Section ─────────────────────────────────────── */
.section { padding: 4.2rem 0; }
.center  { text-align: center; }

/* ── Card Grid ───────────────────────────────────── */
.card-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 15px;
  background: var(--white);
  padding: 1.3rem 1.15rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #dde7f3;
  transition: transform 0.28s ease, box-shadow 0.28s ease, color 0.25s ease, border-color 0.25s ease, background 0.35s ease;
}

.card h3 { min-height: 3.8rem; font-size: 1.7rem; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: #2d84a4;
  background: linear-gradient(145deg, #06274a, #0b4a84 62%, #2f9fa1);
  color: #f5fbff;
}

.card:hover h3,
.card:hover li { color: #f5fbff; }

.card li { transition: color 0.25s ease; }

/* ── Split Section ───────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(145deg, #082f59, #0b3f72);
  color: var(--white);
}

.split-copy { padding: 4rem 0; }
.split-copy h2 { color: var(--white); }

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

/* ── Gallery ─────────────────────────────────────── */
.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid.large { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
  position: relative;
  min-height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--white);
  font-weight: 700;
  padding: 2rem 0.9rem 0.9rem;
  background: linear-gradient(0deg, rgba(3, 14, 28, 0.78), transparent);
}

/* ── Inner Hero ──────────────────────────────────── */
.inner-hero {
  background: linear-gradient(120deg, #0f4f85, #1b7080);
  color: var(--white);
  padding: 3.4rem 0;
}

.inner-hero h1 { color: var(--white); }

/* ── Content Card ────────────────────────────────── */
.content-card {
  border-radius: 14px;
  padding: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ── Contact ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  border: 1px solid #c8d5e8;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  margin-top: 3rem;
  background: #082f59;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 2.4rem 0 1.3rem;
}

.footer-grid h3,
.footer-grid h4 { color: var(--white); }

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.85rem 0 1.3rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .split-section,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu { display: none; }
  .hero { min-height: 64vh; }
  .card-grid,
  .gallery-grid,
  .gallery-grid.large,
  .service-grid,
  .stats-band { grid-template-columns: 1fr; }
}
