@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=Nunito:wght@400;500;600;700;800;900&display=swap');

/*
Theme Name: Custom Theme
Theme URI: https://developer.wordpress.org/themes/
Author: Developer
Description: Custom business theme built on WordPress starter
Version: 2.1.4
Requires at least: 6.0
Tested up to: 6.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
*/

/* ==========================================================================
   CSS Custom Properties / Variables
   ========================================================================== */

:root {
  /* Colors – Primary */
  --color-primary: #007B80;
  --color-primary-light: #0abcc2;
  --color-primary-dark: #003133;
  --color-primary-10: #52dce0;
  --color-primary-20: #19dfe6;
  --color-accent: #003c80;
  /* Colors – Secondary & Tertiary */
  --color-secondary: #8e100b;
  --color-tertiary: #100d73;
  --glass-blur: 12px;

  
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --color-glow: ${tokens.palette.colorPrimary10};

  /* Typography */
  --font-primary: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Nunito', system-ui, -apple-system, sans-serif;
  --heading-weight: 700;
  --heading-line-height: 1.25;
  --heading-letter-spacing: 0.01em;
  --body-size: 1rem;
  --letter-spacing: 0;
  --line-height: 1.7;
  --prose-max-width: 65ch;

  /* Layout */
  --container-max: 1200px;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --section-py: 7rem;
  --section-py-mobile: 4.2rem;
  --gap: 2rem;
  --header-height: 4rem;

  /* Cards */
  --card-padding: 2rem;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.05);

  /* Shadows */
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  /* Transitions & Effects */
  --transition-speed: 0.25s;
  --gradient-angle: 150deg;
  --overlay-opacity: 0.7;
}

[data-theme="dark"] {
  
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --glass-bg: rgba(30, 41, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --color-glow: ${tokens.palette.colorPrimary20};
}

[data-theme="light"] {
  
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --color-glow: ${tokens.palette.colorPrimary10};
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--body-size);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* fix iOS zoom on input focus */
  -webkit-text-size-adjust: 100%;
  transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-letter-spacing);
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--color-primary-dark); }

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

/* ==========================================================================
   Forms & Readability
   ========================================================================== */

input, textarea, select {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: inherit;
  transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* Scroll margin for anchors under sticky header */
[id] { scroll-margin-top: var(--header-height); }

/* ==========================================================================
   Components - Buttons
   ========================================================================== */

.btn-main {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all var(--transition-speed);
  text-decoration: none;
  background: var(--color-primary); color: #fff; border: none;
}
.btn-main:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow); }

/* Gradient helpers */
.gradient-primary { background: linear-gradient(var(--gradient-angle), var(--color-primary), var(--color-primary-dark)); }
.gradient-accent  { background: linear-gradient(var(--gradient-angle), var(--color-primary), var(--color-accent)); }

/* Card base utility */
.card-base {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.card-base:hover { border-color: var(--color-primary-20); box-shadow: var(--shadow); }

/* Prose container */
.prose-width { max-width: var(--prose-max-width); }

/* ==========================================================================
   Animations
   ========================================================================== */

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; animation: aosShow 0s 2s forwards; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes aosShow { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Theme Toggle & Header Switchers
   ========================================================================== */

.header-switchers { display: flex; align-items: center; gap: 0.75rem; }

#theme-toggle {
  background: none; border: none; cursor: pointer; padding: 0.4rem;
  color: var(--color-text); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--transition-speed);
}
#theme-toggle:hover { background: var(--color-border); }

/* Show sun in dark mode, moon in light mode */
[data-theme="dark"] #theme-toggle .sun-icon { display: block; }
[data-theme="dark"] #theme-toggle .moon-icon { display: none; }
[data-theme="light"] #theme-toggle .sun-icon,
:root #theme-toggle .sun-icon { display: none; }
[data-theme="light"] #theme-toggle .moon-icon,
:root #theme-toggle .moon-icon { display: block; }

.lang-links { display: flex; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; }
.lang-links a { color: var(--color-text-muted); padding: 0.2rem 0.4rem; border-radius: var(--radius-sm); }
.lang-links a.active { color: var(--color-primary); background: var(--color-primary-10); }

::selection { background: var(--color-primary); color: #fff; }

/* WordPress compatibility - wp-block styles */
.wp-block-group { margin-bottom: var(--gap); }
.alignwide { max-width: var(--container-max); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
