/*
Theme Name: AMM Solutions
Theme URI: https://ammdigitalsolutions.com
Author: AMM Solutions
Description: Custom theme for AMM Solutions — finance & digital transformation advisory for UAE businesses. Fully editable via Secure Custom Fields and native WordPress menus.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: amm-theme
*/

/* AMM Solutions — custom styles on top of Tailwind CSS */
:root {
  --line: #e2e6ea;
  --gold: #00338d;
}

body {
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: "Instrument Serif", ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Heading highlight word — keep it plain/upright, not italic, for consistent banner typography */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
}

html { scroll-behavior: smooth; }

::selection { background-color: var(--gold); color: #ffffff; }

.container-page {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.gold-underline {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
}

.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background: radial-gradient(60% 60% at 80% 0%, var(--gold) 0%, transparent 60%);
}

/* Contact Form 7 — match site's form styling */
.amm-contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.amm-contact-form label { display: block; font-size: 0.65625rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted, #5c6670); }
.amm-contact-form input[type="text"],
.amm-contact-form input[type="email"],
.amm-contact-form input[type="tel"],
.amm-contact-form select,
.amm-contact-form textarea {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 0.125rem;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #14181c;
  font-family: inherit;
}
.amm-contact-form input[type="text"]:focus,
.amm-contact-form input[type="email"]:focus,
.amm-contact-form input[type="tel"]:focus,
.amm-contact-form select:focus,
.amm-contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.amm-contact-form .amm-field-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .amm-contact-form .amm-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.amm-contact-form button[type="submit"] {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.125rem;
  background: var(--gold);
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.amm-contact-form button[type="submit"]:hover { transform: translateY(-2px); }
.wpcf7-form p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #f87171;
}
input.wpcf7-not-valid,
textarea.wpcf7-not-valid,
select.wpcf7-not-valid {
  border-color: #f87171 !important;
}
.wpcf7-response-output {
  margin: 0 0 1.25rem 0 !important;
  border: 1px solid rgba(0, 51, 141, 0.3);
  background: rgba(0, 51, 141, 0.06);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #14181c;
  border-radius: 2px;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: rgba(0, 51, 141, 0.3);
}
.wpcf7-form.invalid .wpcf7-response-output {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}
.wpcf7-spinner { display: none !important; }

/* Mobile nav — side drawer */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#mobile-menu-overlay.is-open {
  opacity: 1;
}
#mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  width: 20rem;
  max-width: 85%;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#mobile-menu.is-open {
  transform: translateX(0);
}
body.mobile-menu-open {
  overflow: hidden;
}
