/*
Theme Name: ISTRYA Trade Center
Theme URI: https://itcgroup.hr
Author: ISTRYA Trade Center
Description: Custom one-page theme for ISTRYA Trade Center international trade house.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: istrya-trade-center
*/
:root {
  --navy: #0a1628;
  --navy-overlay: rgba(8, 22, 42, 0.72);
  --navy-bar: rgba(10, 22, 40, 0.88);
  --gold: #c4a574;
  --gold-hover: #d4b888;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --divider: rgba(255, 255, 255, 0.15);
  --font: "Montserrat", system-ui, sans-serif;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: #f4f6f8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ── Hero page (first screen) ── */

.hero-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 20, 38, 0.92) 0%,
      rgba(8, 20, 38, 0.78) 38%,
      rgba(8, 20, 38, 0.35) 62%,
      rgba(8, 20, 38, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.25) 0%,
      rgba(8, 20, 38, 0.05) 55%,
      rgba(8, 20, 38, 0.55) 100%
    );
}

.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.25rem 0;
  margin-left: clamp(1.5rem, 5vw, 4rem);
}

.logo-image {
  display: block;
  height: 136px;
  width: auto;
  max-width: min(520px, 75vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.lang-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: var(--gold-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 8rem;
}

.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--gold);
}

.hero-description {
  margin: 0 0 2rem;
  max-width: 520px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-cta span {
  font-size: 1.125rem;
  line-height: 1;
}

.hero-features {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-bar);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
}

.feature-item:not(:last-child) {
  border-right: 1px solid var(--divider);
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.feature-copy p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Below-the-fold sections ── */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: #eef1f5;
}

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.section-lead {
  margin: 0;
  max-width: 640px;
  color: #4a5568;
  font-size: 1.0625rem;
}

.industry-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  max-width: 720px;
}

.industries-copy .industry-list {
  max-width: 720px;
}

.industries-visual {
  margin: 3rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.14);
  border: 1px solid rgba(196, 165, 116, 0.22);
  background: #eef1f5;
}

.industries-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  image-rendering: auto;
}

.industry-list li {
  position: relative;
  padding-left: 1.25rem;
  color: #4a5568;
  font-size: 1rem;
}

.industry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.section-note {
  margin: 2rem 0 0;
  max-width: 640px;
  color: #4a5568;
  font-size: 1.0625rem;
}

.section-note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-note a:hover {
  color: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-person {
  padding: 1.75rem;
  border-radius: 8px;
  background: #eef1f5;
  border: 1px solid #e2e8f0;
}

.contact-person-label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-person-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-person-role {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-person-details {
  display: grid;
  gap: 0.75rem;
}

.contact-person-details a {
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-person-details a:hover {
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: none;
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.25);
}

.btn-cta-form {
  justify-self: start;
}

.form-note {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  background: #e6ffed;
  color: #276749;
  font-size: 0.875rem;
}

.form-error {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  background: #fff5f5;
  color: #c53030;
  font-size: 0.875rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-cta-form:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  padding: 2rem 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
}

.footer-name {
  margin: 0;
  font-weight: 600;
  color: var(--white);
}

.footer-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-copy {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.footer-inner a {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.footer-inner a:hover {
  color: var(--white);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }
}

@media (max-width: 900px) {
  .hero-features {
    grid-template-columns: 1fr;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }

  .hero-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 900px) {
  .industry-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo {
    margin-left: 0;
  }

  .logo-image {
    height: 96px;
    max-width: min(360px, 70vw);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 1.25rem;
    background: rgba(8, 20, 38, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .hero-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 0.5rem 0;
  }

  .lang-btn {
    align-self: flex-start;
    margin-top: 0.75rem;
  }

  .hero-header {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: left;
  }
}
